vanilla-framework icon indicating copy to clipboard operation
vanilla-framework copied to clipboard

Space character causes unexpected spacing in Search & Filter examples

Open jmuzina opened this issue 1 year ago • 2 comments

Describe the bug

There is extra spacing present between search & filter chips that is only present in the Vanilla examples, not in React Components.

To Reproduce

Steps to reproduce the behavior:

  1. Go to any Search and filter example (e.g., default)
  2. Open the search & filter panel
  3. Observe that there is extra space between the chips, that is not present in React Components. This can be seen in dev console as whitespace characters.

Expected behavior

No extra spacing between the chips.

Screenshots Expected behavior (React Components default example) image Actual behavior (Vanilla default example) image

Additional context

Originally reported by @dgtlntv in MM thread

Per @lyubomir-popov :

The way to avoid it is to either set font-size: 0; in the container, or eliminate space in the markup. As any white space like code tabulation gets rendered as a single space

jmuzina avatar Jul 17 '24 17:07 jmuzina

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/WD-13382.

This message was autogenerated

Triage: low effort fix (just remove whitespace between buttons in Vanilla examples). Little downside (they would be a bit harder to read, as HTML formatting would be affected).

bartaz avatar Sep 25 '24 07:09 bartaz