dibk-design 2.1.0 → 2.1.2

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.
@@ -49,7 +49,7 @@ var Button = function Button(props) {
49
49
  delete buttonProps.arrow;
50
50
  var buttonColor = (props === null || props === void 0 ? void 0 : props.inputType) === "radio" ? props.defaultChecked ? "primary" : "default" : props.color;
51
51
  var themeStyle = props.theme ? getThemeStyle(props.theme, buttonColor) : null;
52
- var className = (0, _helpers.classNameArrayToClassNameString)([_ButtonModule.default.button, _ButtonModule.default[buttonColor], _ButtonModule.default[props.size], getArrowClass(props.arrow), props.theme && _ButtonModule.default.hasTheme, props.noHover || (props === null || props === void 0 ? void 0 : props.inputType) === 'radio' ? _ButtonModule.default.noHover : null, props.rounded && _ButtonModule.default.rounded, props.hasErrors && _ButtonModule.default.hasErrors]);
52
+ var className = (0, _helpers.classNameArrayToClassNameString)([_ButtonModule.default.button, _ButtonModule.default[buttonColor], _ButtonModule.default[props.size], getArrowClass(props.arrow), props.theme && _ButtonModule.default.hasTheme, props.noHover || (props === null || props === void 0 ? void 0 : props.inputType) === 'radio' ? _ButtonModule.default.noHover : null, props.rounded && _ButtonModule.default.rounded, props.hasErrors && _ButtonModule.default.hasErrors, props.disabled && _ButtonModule.default.disabled]);
53
53
  if (props.inputType === "button") {
54
54
  return _react.default.createElement("input", _extends({}, buttonProps, {
55
55
  className: className,
@@ -56,7 +56,8 @@
56
56
 
57
57
  &.hasTheme {
58
58
  &:hover,
59
- &:focus {
59
+ &:focus,
60
+ &:focus-within {
60
61
  filter: brightness(90%);
61
62
  }
62
63
 
@@ -65,7 +66,8 @@
65
66
  }
66
67
  }
67
68
 
68
- &:focus-visible {
69
+ &:focus-visible,
70
+ &:focus-within {
69
71
  outline-color: $color-focus-outline;
70
72
  outline-style: auto;
71
73
  outline-width: 2px;
@@ -95,6 +97,7 @@
95
97
  &:not(.hasTheme) {
96
98
  &:hover:not(.noHover),
97
99
  &:focus-visible,
100
+ &:focus-within,
98
101
  &:active {
99
102
  background-color: $color-primary;
100
103
  color: #fff;
@@ -112,6 +115,7 @@
112
115
  &:not(.hasTheme) {
113
116
  &:hover:not(.noHover),
114
117
  &:focus-visible,
118
+ &:focus-within,
115
119
  &:active {
116
120
  background-color: #fff;
117
121
  color: $color-primary;
@@ -123,7 +127,8 @@
123
127
  }
124
128
  }
125
129
 
126
- &:disabled {
130
+ &:disabled,
131
+ &.disabled {
127
132
  &.hasTheme,
128
133
  &:not(.hasTheme) {
129
134
  &.default {
@@ -134,6 +139,7 @@
134
139
  border: 1px solid #e5e3e1;
135
140
  &:hover,
136
141
  &:focus,
142
+ &:focus-within,
137
143
  &:active {
138
144
  background-color: #fff;
139
145
  cursor: default;
@@ -158,7 +164,7 @@
158
164
  border: 1px solid $color-primary;
159
165
  &:hover,
160
166
  &:focus,
161
- &:active {
167
+ &:focus-within &:active {
162
168
  background-color: $color-primary;
163
169
  cursor: default;
164
170
  opacity: 0.6;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dibk-design",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",