You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tabs: "With Tab Icons" story has duplicated focus styles #63271
Ideally, we switch the documented implementation to something that doesn't result in double focus indicators. We shouldn't add overrides to avoid this double focus, if possible.
the inner outline is smaller than it should be because of more <Button /> styles, especially the icon ones, overriding the Tab styles
It's a tricky one. We'll probably have to add specific style overrides in the Tabs component to make sure that the relevant <Button /> styles don't get applied.
Activity
ciampo commentedon Jul 9, 2024
Yup, this is caused by the
<Button />styles interfering withTabs<Button />'s own focus styles<Button />styles, especially the icon ones, overriding theTabstylesIt's a tricky one. We'll probably have to add specific style overrides in the
Tabscomponent to make sure that the relevant<Button />styles don't get applied.Do you have any other thoughts?
mirka commentedon Jul 9, 2024
I was hoping to compose it using existing components, without style overrides. For example, this seems to work as expected:
ciampo commentedon Jul 9, 2024
That makes a lot of sense, it's so good to start seeing the results of composing smaller, modular components!
I implemented your suggestion in #63297