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

Update _buttons.scss #2340

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions app/stylesheets/components/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,17 @@ If you need to change a button's size, you can do so by adding the appropriate c
</table>
*/

.btn, .Button, .ui-button {
border: none; // clean up buttons and make them look more modern
}

.btn:focus, .Button:focus, .ui-button:focus {
box-shadow: none; // remove the box-shadow when focused so that it won't show when the button is clicked, but add it back when on focus-visible
}
.btn:focus-visible, .Button:focus-visible, .ui-button:focus-visible {
box-shadow: 0 0 0 2px var(--ic-link-color); // the shadow is normally inset and shows when the button is clicked (using focus and not focus-visible)
}

.btn, // <-- deprecated- do not use
.Button {
@include canvas-button($ic-color-medium-light, $ic-color-dark, true);
Expand Down