Skip to content

Focus state not wrapping around the whole icon #795

Answered by richbachman
pradyuk asked this question in Q&A
Discussion options

You must be logged in to vote

@pradyuk after taking a closer look, it looks like you might be running an old version of the icons package. I'm seeing the icon with a display: inline-flex style. That throws off the height and along with it the focus state. If you update your icon package, you should see a display: block style instead. That should fix the issue.

Icons also take a display prop so if updating the package is risky, you could also just pass the icon display="block".

You can find the latest Paste package versions here: https://paste.twilio.design/getting-started/engineering#install-paste-system-packages

We're working on a way to make keeping these up to date much easier as well. More on that soon.

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@pradyuk
Comment options

@richbachman
Comment options

@pradyuk
Comment options

@richbachman
Comment options

@pradyuk
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pradyuk
Comment options

Answer selected by pradyuk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants