dibk-design 1.0.3 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -65,7 +65,7 @@
65
65
  }
66
66
 
67
67
  &:focus-visible {
68
- outline-color: #005fcc;
68
+ outline-color: $color-focus-outline;
69
69
  outline-style: auto;
70
70
  outline-width: 2px;
71
71
  outline-offset: 0px;
@@ -93,6 +93,7 @@
93
93
  color: $color-primary;
94
94
  &:not(:local(.hasTheme)) {
95
95
  &:hover:not(:local(.noHover)),
96
+ &:focus-visible,
96
97
  &:active {
97
98
  background-color: $color-primary;
98
99
  color: #fff;
@@ -109,6 +110,7 @@
109
110
  color: #fff;
110
111
  &:not(:local(.hasTheme)) {
111
112
  &:hover:not(:local(.noHover)),
113
+ &:focus-visible,
112
114
  &:active {
113
115
  background-color: #fff;
114
116
  color: $color-primary;
@@ -76,6 +76,7 @@ var CheckBoxIcon = /*#__PURE__*/function (_React$Component) {
76
76
  style: inlineStyle
77
77
  };
78
78
  return /*#__PURE__*/_react.default.createElement("span", props, /*#__PURE__*/_react.default.createElement("span", {
79
+ "aria-hidden": true,
79
80
  className: _CheckBoxIconModule.default.checkmark
80
81
  }, this.props.checked ? this.props.checkmarkCharacter : ''));
81
82
  }
@@ -19,8 +19,10 @@
19
19
  }
20
20
 
21
21
  &:focus-within{
22
- border-color: #072938;
23
- outline-color: #54acb8;
22
+ outline-width: 2px;
23
+ outline-color: $color-focus-outline;
24
+ outline-style: auto;
25
+ outline-offset: 1px;
24
26
  }
25
27
 
26
28
  input[type="checkbox"] {
@@ -46,10 +46,6 @@
46
46
  @include box-shadow(0 0 6px $color-dark-blue);
47
47
  }
48
48
 
49
- &:focus {
50
- outline-color: #54acb8;
51
- }
52
-
53
49
  label {
54
50
  width: 100%;
55
51
  padding: 10px;
@@ -21,8 +21,10 @@
21
21
  }
22
22
 
23
23
  &:focus-within{
24
- border-color: #072938;
25
- outline-color: #54acb8;
24
+ outline-width: 2px;
25
+ outline-color: $color-focus-outline;
26
+ outline-style: auto;
27
+ outline-offset: 1px;
26
28
  }
27
29
 
28
30
  input[type="radio"] {
@@ -46,10 +46,6 @@
46
46
  @include box-shadow(0 0 6px $color-dark-blue);
47
47
  }
48
48
 
49
- &:focus {
50
- outline-color: #54acb8;
51
- }
52
-
53
49
  label {
54
50
  width: 100%;
55
51
  padding: 10px;
@@ -1,6 +1,8 @@
1
1
  $body-background: #ffffff;
2
2
  $color-default-text: #222;
3
3
  $color-link: #072938;
4
+ $color-focus-outline: #005FCC;
5
+
4
6
  $color-dark-blue: #072938;
5
7
  $color-light-blue: #acc5d4;
6
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dibk-design",
3
- "version": "1.0.3",
3
+ "version": "1.0.6",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",