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(ListBox): add title attribute to selected item #9399

Merged
merged 3 commits into from
Aug 24, 2021

Conversation

tw15egan
Copy link
Collaborator

@tw15egan tw15egan commented Aug 3, 2021

Closes #9397

Adds title attribute so that long text can be revealed when it is the currently selected item

Screen Shot 2021-08-03 at 2 06 14 PM

Changelog

New

  • Adds in title attribute to the selected item span / input

Testing / Reviewing

  • ComboBox
  • Dropdown

Pick the text the longest text/text that is truncated. When the Dropdown / Combobox is closed, ensure the text is shown on hover

@tw15egan tw15egan requested a review from a team as a code owner August 3, 2021 18:09
@netlify
Copy link

netlify bot commented Aug 3, 2021

✔️ Deploy Preview for carbon-react-next ready!

🔨 Explore the source changes: dc4a9d3

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/6124b77188f2cf0008d07400

😎 Browse the preview: https://deploy-preview-9399--carbon-react-next.netlify.app

@netlify
Copy link

netlify bot commented Aug 3, 2021

✔️ Deploy Preview for carbon-elements ready!

🔨 Explore the source changes: dc4a9d3

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/6124b771d4d6de00078bdd65

😎 Browse the preview: https://deploy-preview-9399--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Aug 3, 2021

✔️ Deploy Preview for carbon-components-react ready!

🔨 Explore the source changes: dc4a9d3

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/6124b7710966ec0007124fb3

😎 Browse the preview: https://deploy-preview-9399--carbon-components-react.netlify.app

@dakahn
Copy link
Contributor

dakahn commented Aug 4, 2021

Is it possible for non-mouse users to see the full list item label somehow or is it also truncated in the listbox?

@tw15egan
Copy link
Collaborator Author

tw15egan commented Aug 4, 2021

@dakahn doesn't seem like it, this just matches the list menu experience (which also doesn't have a way for a non-mouse user to view the truncated text). A longer-term solution should be created in a separate issue and would need to be implemented consistently throughout the components

Copy link
Contributor

@andreancardona andreancardona left a comment

Choose a reason for hiding this comment

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

🎉

@dakahn
Copy link
Contributor

dakahn commented Aug 5, 2021

@tw15egan i'll bang out a ticket

@andreancardona
Copy link
Contributor

@tw15egan is this ready to be merged? :)

@kodiakhq kodiakhq bot merged commit 097d5d9 into carbon-design-system:main Aug 24, 2021
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.

Hovering over the selected item from a dropdown doesn't show the complete text
4 participants