@instructure/ui-buttons 10.23.1-snapshot-3 → 10.23.1-snapshot-5

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
@@ -3,9 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [10.23.1-snapshot-3](https://github.com/instructure/instructure-ui/compare/v10.23.0...v10.23.1-snapshot-3) (2025-07-17)
6
+ ## [10.23.1-snapshot-5](https://github.com/instructure/instructure-ui/compare/v10.23.0...v10.23.1-snapshot-5) (2025-07-18)
7
7
 
8
- **Note:** Version bump only for package @instructure/ui-buttons
8
+
9
+ ### Bug Fixes
10
+
11
+ * **many:** fix focus ring not respecting theme overrides in Button and FileDrop ([8fffc5d](https://github.com/instructure/instructure-ui/commit/8fffc5db8f41249277283b0ad05be0d158d6d7d7))
9
12
 
10
13
 
11
14
 
@@ -189,7 +189,6 @@ let BaseButton = (_dec = withStyle(generateStyles, generateComponentTheme), _dec
189
189
  });
190
190
  }
191
191
  render() {
192
- var _styles$content;
193
192
  const _this$props7 = this.props,
194
193
  type = _this$props7.type,
195
194
  size = _this$props7.size,
@@ -254,7 +253,6 @@ let BaseButton = (_dec = withStyle(generateStyles, generateComponentTheme), _dec
254
253
  tabIndex: tabIndexValue,
255
254
  disabled: isDisabled || isReadOnly,
256
255
  css: styles === null || styles === void 0 ? void 0 : styles.baseButton,
257
- focusRingBorderRadius: String(styles === null || styles === void 0 ? void 0 : (_styles$content = styles.content) === null || _styles$content === void 0 ? void 0 : _styles$content.borderRadius),
258
256
  withFocusOutline: withFocusOutline,
259
257
  children: _jsx("span", {
260
258
  css: styles === null || styles === void 0 ? void 0 : styles.content,
@@ -306,6 +306,8 @@ const generateStyle = (componentTheme, props, state) => {
306
306
  appearance: 'none',
307
307
  textDecoration: 'none' /* for links styled as buttons */,
308
308
  touchAction: 'manipulation',
309
+ // This sets the focus ring's border radius displayed by the `View`
310
+ borderRadius: componentTheme.borderRadius,
309
311
  '&::-moz-focus-inner': {
310
312
  border: '0' /* removes default dotted focus outline in Firefox */
311
313
  },
@@ -198,7 +198,6 @@ let BaseButton = exports.BaseButton = (_dec = (0, _emotion.withStyle)(_styles.de
198
198
  });
199
199
  }
200
200
  render() {
201
- var _styles$content;
202
201
  const _this$props7 = this.props,
203
202
  type = _this$props7.type,
204
203
  size = _this$props7.size,
@@ -263,7 +262,6 @@ let BaseButton = exports.BaseButton = (_dec = (0, _emotion.withStyle)(_styles.de
263
262
  tabIndex: tabIndexValue,
264
263
  disabled: isDisabled || isReadOnly,
265
264
  css: styles === null || styles === void 0 ? void 0 : styles.baseButton,
266
- focusRingBorderRadius: String(styles === null || styles === void 0 ? void 0 : (_styles$content = styles.content) === null || _styles$content === void 0 ? void 0 : _styles$content.borderRadius),
267
265
  withFocusOutline: withFocusOutline,
268
266
  children: (0, _jsxRuntime.jsx)("span", {
269
267
  css: styles === null || styles === void 0 ? void 0 : styles.content,
@@ -312,6 +312,8 @@ const generateStyle = (componentTheme, props, state) => {
312
312
  appearance: 'none',
313
313
  textDecoration: 'none' /* for links styled as buttons */,
314
314
  touchAction: 'manipulation',
315
+ // This sets the focus ring's border radius displayed by the `View`
316
+ borderRadius: componentTheme.borderRadius,
315
317
  '&::-moz-focus-inner': {
316
318
  border: '0' /* removes default dotted focus outline in Firefox */
317
319
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-buttons",
3
- "version": "10.23.1-snapshot-3",
3
+ "version": "10.23.1-snapshot-5",
4
4
  "description": "Accessible button components",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,9 +23,9 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-axe-check": "10.23.1-snapshot-3",
27
- "@instructure/ui-babel-preset": "10.23.1-snapshot-3",
28
- "@instructure/ui-themes": "10.23.1-snapshot-3",
26
+ "@instructure/ui-axe-check": "10.23.1-snapshot-5",
27
+ "@instructure/ui-babel-preset": "10.23.1-snapshot-5",
28
+ "@instructure/ui-themes": "10.23.1-snapshot-5",
29
29
  "@testing-library/jest-dom": "^6.6.3",
30
30
  "@testing-library/react": "^16.0.1",
31
31
  "@testing-library/user-event": "^14.6.1",
@@ -33,21 +33,21 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@babel/runtime": "^7.27.6",
36
- "@instructure/console": "10.23.1-snapshot-3",
37
- "@instructure/emotion": "10.23.1-snapshot-3",
38
- "@instructure/shared-types": "10.23.1-snapshot-3",
39
- "@instructure/ui-a11y-content": "10.23.1-snapshot-3",
40
- "@instructure/ui-a11y-utils": "10.23.1-snapshot-3",
41
- "@instructure/ui-color-utils": "10.23.1-snapshot-3",
42
- "@instructure/ui-dom-utils": "10.23.1-snapshot-3",
43
- "@instructure/ui-icons": "10.23.1-snapshot-3",
44
- "@instructure/ui-position": "10.23.1-snapshot-3",
45
- "@instructure/ui-prop-types": "10.23.1-snapshot-3",
46
- "@instructure/ui-react-utils": "10.23.1-snapshot-3",
47
- "@instructure/ui-testable": "10.23.1-snapshot-3",
48
- "@instructure/ui-tooltip": "10.23.1-snapshot-3",
49
- "@instructure/ui-utils": "10.23.1-snapshot-3",
50
- "@instructure/ui-view": "10.23.1-snapshot-3",
36
+ "@instructure/console": "10.23.1-snapshot-5",
37
+ "@instructure/emotion": "10.23.1-snapshot-5",
38
+ "@instructure/shared-types": "10.23.1-snapshot-5",
39
+ "@instructure/ui-a11y-content": "10.23.1-snapshot-5",
40
+ "@instructure/ui-a11y-utils": "10.23.1-snapshot-5",
41
+ "@instructure/ui-color-utils": "10.23.1-snapshot-5",
42
+ "@instructure/ui-dom-utils": "10.23.1-snapshot-5",
43
+ "@instructure/ui-icons": "10.23.1-snapshot-5",
44
+ "@instructure/ui-position": "10.23.1-snapshot-5",
45
+ "@instructure/ui-prop-types": "10.23.1-snapshot-5",
46
+ "@instructure/ui-react-utils": "10.23.1-snapshot-5",
47
+ "@instructure/ui-testable": "10.23.1-snapshot-5",
48
+ "@instructure/ui-tooltip": "10.23.1-snapshot-5",
49
+ "@instructure/ui-utils": "10.23.1-snapshot-5",
50
+ "@instructure/ui-view": "10.23.1-snapshot-5",
51
51
  "keycode": "^2",
52
52
  "prop-types": "^15.8.1"
53
53
  },
@@ -308,9 +308,6 @@ class BaseButton extends Component<BaseButtonProps> {
308
308
  tabIndex={tabIndexValue}
309
309
  disabled={isDisabled || isReadOnly}
310
310
  css={styles?.baseButton}
311
- focusRingBorderRadius={String(
312
- (styles?.content as { borderRadius?: string | number })?.borderRadius
313
- )}
314
311
  withFocusOutline={withFocusOutline}
315
312
  >
316
313
  <span css={styles?.content}>{this.renderChildren()}</span>
@@ -359,6 +359,8 @@ const generateStyle = (
359
359
  appearance: 'none',
360
360
  textDecoration: 'none' /* for links styled as buttons */,
361
361
  touchAction: 'manipulation',
362
+ // This sets the focus ring's border radius displayed by the `View`
363
+ borderRadius: componentTheme.borderRadius,
362
364
 
363
365
  '&::-moz-focus-inner': {
364
366
  border: '0' /* removes default dotted focus outline in Firefox */