implemented interactive span with size relative to text size