spectrum-web-components
spectrum-web-components copied to clipboard
[Bug]: Selection indicator in Tab and TopNav should be updated when content size changes
Code of conduct
- [X] I agree to follow this project's code of conduct.
Impacted component(s)
Tabs, TopNav
Expected behavior
Tabs and TopNav should always update its selection indicator when its content size changes such as each child element changes in its size due to any dynamic updates.
Actual behavior
The selection indicator does not update when the Tabs and TopNav change in their content size.
Screenshots
What browsers are you seeing the problem in?
Firefox, Chrome, Safari, Microsoft Edge
How can we reproduce this issue?
- Go to this reduced test case
- Run the demo and you should see the rendered
TopNavwith long text in each children - Wait for 3 seconds to see each children of
TopNavchanges its content with a shorter text - You should see the selection indicator does not update when the content changes
Sample code that illustrates the problem
Simple reduced test can be found at https://jsbin.com/mehidizuda/edit?html,css,output.
Logs taken while reproducing problem
N/A