Skip to content

Commit 2a80622

Browse files
authored
Improved Focus Outline Mixin. (#468)
1 parent 757157d commit 2a80622

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@soramitsu/soramitsu-js-ui",
3-
"version": "1.0.38",
3+
"version": "1.0.39",
44
"private": false,
55
"publishConfig": {
66
"registry": "https://nexus.iroha.tech/repository/npm-soramitsu/"

Diff for: src/styles/neumorphism/mixins.scss

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
@mixin focus-outline($focusWithin: false) {
2+
$outline: 1px solid var(--s-color-outline);
23
@if $focusWithin == true {
34
&:focus-within {
4-
outline: 1px solid var(--s-color-outline);
5+
outline: $outline;
56
}
67
} @else {
7-
&:focus {
8-
outline: 1px solid var(--s-color-outline);
8+
&:focus:not(:active) {
9+
outline: $outline;
910
}
1011
}
1112
}

0 commit comments

Comments
 (0)