@instructure/ui-buttons 10.23.1-snapshot-3 → 10.23.1-snapshot-4
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 +5 -2
- package/es/BaseButton/index.js +0 -2
- package/es/BaseButton/styles.js +2 -0
- package/lib/BaseButton/index.js +0 -2
- package/lib/BaseButton/styles.js +2 -0
- package/package.json +19 -19
- package/src/BaseButton/index.tsx +0 -3
- package/src/BaseButton/styles.ts +2 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/BaseButton/index.d.ts.map +1 -1
- package/types/BaseButton/styles.d.ts.map +1 -1
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-
|
|
6
|
+
## [10.23.1-snapshot-4](https://github.com/instructure/instructure-ui/compare/v10.23.0...v10.23.1-snapshot-4) (2025-07-18)
|
|
7
7
|
|
|
8
|
-
|
|
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
|
|
package/es/BaseButton/index.js
CHANGED
|
@@ -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,
|
package/es/BaseButton/styles.js
CHANGED
|
@@ -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
|
},
|
package/lib/BaseButton/index.js
CHANGED
|
@@ -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,
|
package/lib/BaseButton/styles.js
CHANGED
|
@@ -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
|
+
"version": "10.23.1-snapshot-4",
|
|
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-
|
|
27
|
-
"@instructure/ui-babel-preset": "10.23.1-snapshot-
|
|
28
|
-
"@instructure/ui-themes": "10.23.1-snapshot-
|
|
26
|
+
"@instructure/ui-axe-check": "10.23.1-snapshot-4",
|
|
27
|
+
"@instructure/ui-babel-preset": "10.23.1-snapshot-4",
|
|
28
|
+
"@instructure/ui-themes": "10.23.1-snapshot-4",
|
|
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-
|
|
37
|
-
"@instructure/emotion": "10.23.1-snapshot-
|
|
38
|
-
"@instructure/shared-types": "10.23.1-snapshot-
|
|
39
|
-
"@instructure/ui-a11y-content": "10.23.1-snapshot-
|
|
40
|
-
"@instructure/ui-a11y-utils": "10.23.1-snapshot-
|
|
41
|
-
"@instructure/ui-color-utils": "10.23.1-snapshot-
|
|
42
|
-
"@instructure/ui-dom-utils": "10.23.1-snapshot-
|
|
43
|
-
"@instructure/ui-icons": "10.23.1-snapshot-
|
|
44
|
-
"@instructure/ui-position": "10.23.1-snapshot-
|
|
45
|
-
"@instructure/ui-prop-types": "10.23.1-snapshot-
|
|
46
|
-
"@instructure/ui-react-utils": "10.23.1-snapshot-
|
|
47
|
-
"@instructure/ui-testable": "10.23.1-snapshot-
|
|
48
|
-
"@instructure/ui-tooltip": "10.23.1-snapshot-
|
|
49
|
-
"@instructure/ui-utils": "10.23.1-snapshot-
|
|
50
|
-
"@instructure/ui-view": "10.23.1-snapshot-
|
|
36
|
+
"@instructure/console": "10.23.1-snapshot-4",
|
|
37
|
+
"@instructure/emotion": "10.23.1-snapshot-4",
|
|
38
|
+
"@instructure/shared-types": "10.23.1-snapshot-4",
|
|
39
|
+
"@instructure/ui-a11y-content": "10.23.1-snapshot-4",
|
|
40
|
+
"@instructure/ui-a11y-utils": "10.23.1-snapshot-4",
|
|
41
|
+
"@instructure/ui-color-utils": "10.23.1-snapshot-4",
|
|
42
|
+
"@instructure/ui-dom-utils": "10.23.1-snapshot-4",
|
|
43
|
+
"@instructure/ui-icons": "10.23.1-snapshot-4",
|
|
44
|
+
"@instructure/ui-position": "10.23.1-snapshot-4",
|
|
45
|
+
"@instructure/ui-prop-types": "10.23.1-snapshot-4",
|
|
46
|
+
"@instructure/ui-react-utils": "10.23.1-snapshot-4",
|
|
47
|
+
"@instructure/ui-testable": "10.23.1-snapshot-4",
|
|
48
|
+
"@instructure/ui-tooltip": "10.23.1-snapshot-4",
|
|
49
|
+
"@instructure/ui-utils": "10.23.1-snapshot-4",
|
|
50
|
+
"@instructure/ui-view": "10.23.1-snapshot-4",
|
|
51
51
|
"keycode": "^2",
|
|
52
52
|
"prop-types": "^15.8.1"
|
|
53
53
|
},
|
package/src/BaseButton/index.tsx
CHANGED
|
@@ -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>
|
package/src/BaseButton/styles.ts
CHANGED
|
@@ -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 */
|