@cloudflare/component-button 5.4.0 → 5.4.1
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.
- package/CHANGELOG.md +6 -0
- package/dist/Button.d.ts +3 -2
- package/es/Button.js +3 -2
- package/lib/Button.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/Button.d.ts
CHANGED
|
@@ -46,8 +46,9 @@ export declare const buttonStyles: (props: PropsWithTheme) => {
|
|
|
46
46
|
readonly width: "auto" | "100%";
|
|
47
47
|
readonly boxShadow?: string | undefined;
|
|
48
48
|
readonly '&:focus-visible': {
|
|
49
|
-
readonly outlineOffset:
|
|
50
|
-
readonly
|
|
49
|
+
readonly outlineOffset: 2;
|
|
50
|
+
readonly outlineWidth: 2;
|
|
51
|
+
readonly outlineStyle: "solid";
|
|
51
52
|
readonly outlineColor: string;
|
|
52
53
|
};
|
|
53
54
|
readonly '&[title]': {
|
package/es/Button.js
CHANGED
|
@@ -169,8 +169,9 @@ export var buttonStyles = props => {
|
|
|
169
169
|
'&:focus:active': styles.active
|
|
170
170
|
}), {}, {
|
|
171
171
|
'&:focus-visible': {
|
|
172
|
-
outlineOffset:
|
|
173
|
-
|
|
172
|
+
outlineOffset: 2,
|
|
173
|
+
outlineWidth: 2,
|
|
174
|
+
outlineStyle: 'solid',
|
|
174
175
|
outlineColor: type === 'danger' || type === 'plainDestructive' ? theme.colors.red[isDarkMode() ? 3 : 4] : theme.colors.focus
|
|
175
176
|
},
|
|
176
177
|
'&[title]': {
|
package/lib/Button.js
CHANGED
|
@@ -182,8 +182,9 @@ var buttonStyles = function buttonStyles(props) {
|
|
|
182
182
|
'&:focus:active': styles.active
|
|
183
183
|
}), {}, {
|
|
184
184
|
'&:focus-visible': {
|
|
185
|
-
outlineOffset:
|
|
186
|
-
|
|
185
|
+
outlineOffset: 2,
|
|
186
|
+
outlineWidth: 2,
|
|
187
|
+
outlineStyle: 'solid',
|
|
187
188
|
outlineColor: type === 'danger' || type === 'plainDestructive' ? theme.colors.red[(0, _styleConst.isDarkMode)() ? 3 : 4] : theme.colors.focus
|
|
188
189
|
},
|
|
189
190
|
'&[title]': {
|
package/package.json
CHANGED