Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

fix(tabs): make hover/focus/active states more user-friendly#21

Merged
jayjayjpg merged 1 commit intomainfrom
jj/tabs-in-solid-focus
Nov 1, 2022
Merged

fix(tabs): make hover/focus/active states more user-friendly#21
jayjayjpg merged 1 commit intomainfrom
jj/tabs-in-solid-focus

Conversation

@jayjayjpg
Copy link
Copy Markdown
Contributor

@jayjayjpg jayjayjpg commented Nov 1, 2022

Part of https://github.com/meroxa/platform-ui-v1/issues/617

With this change the Tabs::Item component will have a consistent :active state: regardless if a user hovers over, focusses in or blurs the element, the active style will be preserved. Additionally, this ensures that the style of the previously used :focus state is only shown on inactive elements the user hovers over.

Demo

before after
tabsbefore tabsafter

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Nov 1, 2022

🦋 Changeset detected

Latest commit: 6934762

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
mx-ui-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 1, 2022

Test coverage: 92.29%

🤷‍♂️ Did not change

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 1, 2022

Test coverage: 92.29%

🤷‍♂️ Did not change

@jayjayjpg jayjayjpg merged commit e198224 into main Nov 1, 2022
@meroxa-machine meroxa-machine mentioned this pull request Nov 1, 2022
@jayjayjpg jayjayjpg deleted the jj/tabs-in-solid-focus branch December 22, 2022 16:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants