@instructure/ui-buttons 10.12.1-snapshot-9 → 10.12.1-snapshot-11

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.12.1-snapshot-9](https://github.com/instructure/instructure-ui/compare/v10.12.0...v10.12.1-snapshot-9) (2025-03-06)
6
+ ## [10.12.1-snapshot-11](https://github.com/instructure/instructure-ui/compare/v10.12.0...v10.12.1-snapshot-11) (2025-03-06)
7
7
 
8
- **Note:** Version bump only for package @instructure/ui-buttons
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ui-view,ui-file-drop,ui-buttons:** make focus ring radius fit the enclosed element's radius ([1283939](https://github.com/instructure/instructure-ui/commit/128393959340cf0408f5c33b094c5d7f721553e9))
9
12
 
10
13
 
11
14
 
@@ -183,6 +183,7 @@ let BaseButton = (_dec = withStyle(generateStyles, generateComponentTheme), _dec
183
183
  }, flexChildren);
184
184
  }
185
185
  render() {
186
+ var _styles$content;
186
187
  const _this$props7 = this.props,
187
188
  type = _this$props7.type,
188
189
  size = _this$props7.size,
@@ -228,7 +229,8 @@ let BaseButton = (_dec = withStyle(generateStyles, generateComponentTheme), _dec
228
229
  role: onClick && as !== 'button' ? 'button' : void 0,
229
230
  tabIndex: onClick && as ? tabIndex || 0 : tabIndex,
230
231
  disabled: isDisabled || isReadOnly,
231
- css: isEnabled ? styles === null || styles === void 0 ? void 0 : styles.baseButton : null
232
+ css: isEnabled ? styles === null || styles === void 0 ? void 0 : styles.baseButton : null,
233
+ focusRingBorderRadius: String(styles === null || styles === void 0 ? void 0 : (_styles$content = styles.content) === null || _styles$content === void 0 ? void 0 : _styles$content.borderRadius)
232
234
  }), jsx("span", {
233
235
  css: styles === null || styles === void 0 ? void 0 : styles.content
234
236
  }, this.renderChildren()));
@@ -193,6 +193,7 @@ let BaseButton = exports.BaseButton = (_dec = (0, _emotion.withStyle)(_styles.de
193
193
  }, flexChildren);
194
194
  }
195
195
  render() {
196
+ var _styles$content;
196
197
  const _this$props7 = this.props,
197
198
  type = _this$props7.type,
198
199
  size = _this$props7.size,
@@ -238,7 +239,8 @@ let BaseButton = exports.BaseButton = (_dec = (0, _emotion.withStyle)(_styles.de
238
239
  role: onClick && as !== 'button' ? 'button' : void 0,
239
240
  tabIndex: onClick && as ? tabIndex || 0 : tabIndex,
240
241
  disabled: isDisabled || isReadOnly,
241
- css: isEnabled ? styles === null || styles === void 0 ? void 0 : styles.baseButton : null
242
+ css: isEnabled ? styles === null || styles === void 0 ? void 0 : styles.baseButton : null,
243
+ focusRingBorderRadius: String(styles === null || styles === void 0 ? void 0 : (_styles$content = styles.content) === null || _styles$content === void 0 ? void 0 : _styles$content.borderRadius)
242
244
  }), (0, _emotion.jsx)("span", {
243
245
  css: styles === null || styles === void 0 ? void 0 : styles.content
244
246
  }, this.renderChildren()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-buttons",
3
- "version": "10.12.1-snapshot-9",
3
+ "version": "10.12.1-snapshot-11",
4
4
  "description": "Accessible button components",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,10 +23,10 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-axe-check": "10.12.1-snapshot-9",
27
- "@instructure/ui-babel-preset": "10.12.1-snapshot-9",
28
- "@instructure/ui-test-utils": "10.12.1-snapshot-9",
29
- "@instructure/ui-themes": "10.12.1-snapshot-9",
26
+ "@instructure/ui-axe-check": "10.12.1-snapshot-11",
27
+ "@instructure/ui-babel-preset": "10.12.1-snapshot-11",
28
+ "@instructure/ui-test-utils": "10.12.1-snapshot-11",
29
+ "@instructure/ui-themes": "10.12.1-snapshot-11",
30
30
  "@testing-library/jest-dom": "^6.6.3",
31
31
  "@testing-library/react": "^16.0.1",
32
32
  "@testing-library/user-event": "^14.5.2",
@@ -34,21 +34,21 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@babel/runtime": "^7.26.0",
37
- "@instructure/console": "10.12.1-snapshot-9",
38
- "@instructure/emotion": "10.12.1-snapshot-9",
39
- "@instructure/shared-types": "10.12.1-snapshot-9",
40
- "@instructure/ui-a11y-content": "10.12.1-snapshot-9",
41
- "@instructure/ui-a11y-utils": "10.12.1-snapshot-9",
42
- "@instructure/ui-color-utils": "10.12.1-snapshot-9",
43
- "@instructure/ui-dom-utils": "10.12.1-snapshot-9",
44
- "@instructure/ui-icons": "10.12.1-snapshot-9",
45
- "@instructure/ui-position": "10.12.1-snapshot-9",
46
- "@instructure/ui-prop-types": "10.12.1-snapshot-9",
47
- "@instructure/ui-react-utils": "10.12.1-snapshot-9",
48
- "@instructure/ui-testable": "10.12.1-snapshot-9",
49
- "@instructure/ui-tooltip": "10.12.1-snapshot-9",
50
- "@instructure/ui-utils": "10.12.1-snapshot-9",
51
- "@instructure/ui-view": "10.12.1-snapshot-9",
37
+ "@instructure/console": "10.12.1-snapshot-11",
38
+ "@instructure/emotion": "10.12.1-snapshot-11",
39
+ "@instructure/shared-types": "10.12.1-snapshot-11",
40
+ "@instructure/ui-a11y-content": "10.12.1-snapshot-11",
41
+ "@instructure/ui-a11y-utils": "10.12.1-snapshot-11",
42
+ "@instructure/ui-color-utils": "10.12.1-snapshot-11",
43
+ "@instructure/ui-dom-utils": "10.12.1-snapshot-11",
44
+ "@instructure/ui-icons": "10.12.1-snapshot-11",
45
+ "@instructure/ui-position": "10.12.1-snapshot-11",
46
+ "@instructure/ui-prop-types": "10.12.1-snapshot-11",
47
+ "@instructure/ui-react-utils": "10.12.1-snapshot-11",
48
+ "@instructure/ui-testable": "10.12.1-snapshot-11",
49
+ "@instructure/ui-tooltip": "10.12.1-snapshot-11",
50
+ "@instructure/ui-utils": "10.12.1-snapshot-11",
51
+ "@instructure/ui-view": "10.12.1-snapshot-11",
52
52
  "keycode": "^2",
53
53
  "prop-types": "^15.8.1"
54
54
  },
@@ -280,6 +280,9 @@ class BaseButton extends Component<BaseButtonProps> {
280
280
  tabIndex={onClick && as ? tabIndex || 0 : tabIndex}
281
281
  disabled={isDisabled || isReadOnly}
282
282
  css={isEnabled ? styles?.baseButton : null}
283
+ focusRingBorderRadius={String(
284
+ (styles?.content as { borderRadius?: string | number })?.borderRadius
285
+ )}
283
286
  >
284
287
  <span css={styles?.content}>{this.renderChildren()}</span>
285
288
  </View>