Skip to content

Commit

Permalink
Improved Focus Outline Mixin. (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnatalia authored Sep 26, 2022
1 parent 757157d commit 2a80622
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@soramitsu/soramitsu-js-ui",
"version": "1.0.38",
"version": "1.0.39",
"private": false,
"publishConfig": {
"registry": "https://nexus.iroha.tech/repository/npm-soramitsu/"
Expand Down
7 changes: 4 additions & 3 deletions src/styles/neumorphism/mixins.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
@mixin focus-outline($focusWithin: false) {
$outline: 1px solid var(--s-color-outline);
@if $focusWithin == true {
&:focus-within {
outline: 1px solid var(--s-color-outline);
outline: $outline;
}
} @else {
&:focus {
outline: 1px solid var(--s-color-outline);
&:focus:not(:active) {
outline: $outline;
}
}
}

0 comments on commit 2a80622

Please sign in to comment.