Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(FilterableMultiselect): extend focus around entire input #7615

Closed

Conversation

tw15egan
Copy link
Member

Closes #7535

Screen Shot 2021-01-20 at 2 27 04 PM

Changelog

New

  • Absolutely positions the clear selection button
  • Adjusts the padding-left based on the number of items shown. Currently handles single-digit and double-digit values. If needed, we can add more logic to handle triple-digit numbers and beyond pretty easily (Logic)

Testing / Reviewing

Navigate to Filterable Multiselect and select a few items. You should see the padding adjust when an item is selected and the focus should extend around the entire Multiselect. Add more items to the story to test double-digit numbers

@netlify
Copy link

netlify bot commented Jan 20, 2021

Deploy preview for carbon-elements ready!

Built with commit 3a0e0f7

https://deploy-preview-7615--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Jan 20, 2021

Deploy preview for carbon-components-react ready!

Built with commit 3a0e0f7

https://deploy-preview-7615--carbon-components-react.netlify.app

Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will likely conflict with #7518 but I am already exploring a way to achieve this style and still avoid dynamic padding calculation, haven't committed it in this PR yet but I'll add it after I resolve the filter tag styling in that PR first

@tw15egan
Copy link
Member Author

@emyarod oh nice! I'll close this one out since it seems like you've got a fix in the works 🎉 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filterable Multiselect focus outline on wrong node
2 participants