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(Tabs): diff tablist properties on component update #6843

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Sep 15, 2020

Closes #6838

This PR adds a comparison check for the tablist clientWidth, scrollLeft, and scrollWidth values on component update so that dynamic tab list updates will not require interaction to update the overflow button visibility

Changelog

New

  • diff tablist properties on component update

Testing / Reviewing

Refer to the example in the ticket for an example to test with. When the tablist is dynamically modified, the overflow button visibility should reflect the current tablist width

@netlify
Copy link

netlify bot commented Sep 15, 2020

Deploy preview for carbon-elements ready!

Built with commit be68326

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

@netlify
Copy link

netlify bot commented Sep 15, 2020

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit be68326

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

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.

@emyarod looks good!

@kodiakhq kodiakhq bot merged commit 87d02b7 into carbon-design-system:master Sep 16, 2020
@emyarod emyarod mentioned this pull request Sep 16, 2020
36 tasks
@emyarod emyarod deleted the 6838-diff-tablist-properties-on-update branch September 18, 2020 14:59
emyarod added a commit to emyarod/carbon that referenced this pull request Sep 18, 2020
emyarod added a commit to emyarod/carbon that referenced this pull request Sep 28, 2020
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.

Tabs overflow not displayed on dynamic addition of tabs
4 participants