-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💄 [#462] Final button tweaks, hopefully
* Updated to design tokens for tab-focus styles * Updated CSS override to be minimally invasive * Updated changelog with extra migration actions * Renamed MDX documentation to get proper 'Docs' label in storybook * Updated stories to give `href` attribute to anchor tags, which makes them tabbable. Styles are wonky, but so are they in main.
- Loading branch information
1 parent
ec9ac4a
commit ad125cb
Showing
8 changed files
with
37 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule design-tokens
updated
3 files
+2 −2 | package-lock.json | |
+1 −1 | package.json | |
+10 −1 | src/community/utrecht/button.tokens.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
@use 'microscope-sass/lib/bem'; | ||
|
||
@import '@utrecht/components/dist/button/css/index.css'; | ||
@import '@utrecht/components/dist/button-link/css/index.css'; | ||
|
||
.openforms-theme { | ||
.utrecht-button, | ||
.utrecht-button-link { | ||
border-block-start-color: transparent !important; | ||
border-inline-start-color: transparent !important; | ||
// For buttons without any state or buttons being hovered over, apply a 3d effect | ||
// by making the top and left border transparent. | ||
&, | ||
&:hover { | ||
// However, if the button has visible focus, apply the border color to all borders | ||
// otherwise it looks a bit broken. | ||
&:not(:focus-visible) { | ||
border-block-start-color: transparent; | ||
border-inline-start-color: transparent; | ||
} | ||
} | ||
} | ||
} |