Open arturvardanyan opened 1 year ago
Seems to occur in the latest version too and in other components like TextField/TextArea. We may need to add flex-shrink: 0
to the .spectrum-FieldLabel-requiredIcon
class.
We should also make sure we have chromatic stories covering this.
Provide a general summary of the issue here
I am facing a rendering problem when I set the
isRequired
prop to true and write a long label. The * symbol starts to render partially.๐ค Expected Behavior?
When the
isRequired
prop is set totrue
and a long label is provided, the*
symbol should be fully rendered without any partial truncation. The entire*
symbol should be visible.๐ฏ Current Behavior
Currently, when the
isRequired
prop is set to true and a long label is provided, the*
symbol starts to render partial๐ Possible Solution
flex-shrink: 0
svg๐ฆ Context
๐ฅ๏ธ Steps to Reproduce
https://codesandbox.io/s/spectrum-picker-required-zd3v6p?file=/src/App.js
Version
3.25.1
What browsers are you seeing the problem on?
Chrome
If other, please specify.
No response
What operating system are you using?
MacOS
๐งข Your Company/Team
No response
๐ท Tracking Issue
No response