@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 5.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 4396bfb286: Fix dark mode focus state
8
+
3
9
  ## 5.4.0
4
10
 
5
11
  ### Minor Changes
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: 3;
50
- readonly outlineStyle: "auto";
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: 3,
173
- outlineStyle: 'auto',
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: 3,
186
- outlineStyle: 'auto',
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudflare/component-button",
3
3
  "description": "Cloudflare Button Component",
4
- "version": "5.4.0",
4
+ "version": "5.4.1",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
7
7
  "author": "James Kyle <jkyle@cloudflare.com>",