@instructure/ui-buttons 11.7.11-snapshot-18 → 11.7.11-snapshot-20

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,12 +3,11 @@
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
- ## [11.7.11-snapshot-18](https://github.com/instructure/instructure-ui/compare/v11.7.10...v11.7.11-snapshot-18) (2026-11-13)
7
-
8
- **Note:** Version bump only for package @instructure/ui-buttons
9
-
6
+ ## [11.7.11-snapshot-20](https://github.com/instructure/instructure-ui/compare/v11.7.10...v11.7.11-snapshot-20) (2026-11-17)
10
7
 
8
+ ### Bug Fixes
11
9
 
10
+ * **ui-buttons:** set aria-disabled on disabled Button and IconButton ([#2761](https://github.com/instructure/instructure-ui/issues/2761)) ([5cd4562](https://github.com/instructure/instructure-ui/commit/5cd456264cb87db2987ac35150faef8f47562e1c))
12
11
 
13
12
 
14
13
  ## [11.7.10](https://github.com/instructure/instructure-ui/compare/v11.7.8...v11.7.10) (2026-10-14)
@@ -292,7 +292,11 @@ let BaseButton = (_dec = withStyle(generateStyles, generateComponentTheme), _dec
292
292
  onKeyDown: this.handleKeyDown,
293
293
  role: onClick && as !== 'button' ? 'button' : undefined,
294
294
  tabIndex: tabIndexValue,
295
- disabled: isDisabled || isReadOnly,
295
+ disabled: isDisabled || isReadOnly
296
+ // for elements that do not support the "disabled" attribute
297
+ // "aria-disabled" needs to be added so screen readers announce it as "dimmed"
298
+ ,
299
+ "aria-disabled": isDisabled ? 'true' : undefined,
296
300
  css: styles?.baseButton,
297
301
  withFocusOutline: withFocusOutline,
298
302
  "data-cid": combineDataCid('BaseButton', this.props),
@@ -313,7 +313,11 @@ let BaseButton = (_dec = withStyleNew(generateStyles), _dec(_class = class BaseB
313
313
  onKeyDown: this.handleKeyDown,
314
314
  role: onClick && as !== 'button' ? 'button' : undefined,
315
315
  tabIndex: tabIndexValue,
316
- disabled: isDisabled || isReadOnly,
316
+ disabled: isDisabled || isReadOnly
317
+ // for elements that do not support the "disabled" attribute
318
+ // "aria-disabled" needs to be added so screen readers announce it as "dimmed"
319
+ ,
320
+ "aria-disabled": isDisabled ? 'true' : undefined,
317
321
  css: styles?.baseButton,
318
322
  withFocusOutline: withFocusOutline,
319
323
  "data-cid": combineDataCid('BaseButton', this.props),
@@ -298,7 +298,11 @@ let BaseButton = exports.BaseButton = (_dec = (0, _emotion.withStyle)(_styles.de
298
298
  onKeyDown: this.handleKeyDown,
299
299
  role: onClick && as !== 'button' ? 'button' : undefined,
300
300
  tabIndex: tabIndexValue,
301
- disabled: isDisabled || isReadOnly,
301
+ disabled: isDisabled || isReadOnly
302
+ // for elements that do not support the "disabled" attribute
303
+ // "aria-disabled" needs to be added so screen readers announce it as "dimmed"
304
+ ,
305
+ "aria-disabled": isDisabled ? 'true' : undefined,
302
306
  css: styles?.baseButton,
303
307
  withFocusOutline: withFocusOutline,
304
308
  "data-cid": (0, _uiUtils.combineDataCid)('BaseButton', this.props),
@@ -319,7 +319,11 @@ let BaseButton = exports.BaseButton = (_dec = (0, _emotion.withStyleNew)(_styles
319
319
  onKeyDown: this.handleKeyDown,
320
320
  role: onClick && as !== 'button' ? 'button' : undefined,
321
321
  tabIndex: tabIndexValue,
322
- disabled: isDisabled || isReadOnly,
322
+ disabled: isDisabled || isReadOnly
323
+ // for elements that do not support the "disabled" attribute
324
+ // "aria-disabled" needs to be added so screen readers announce it as "dimmed"
325
+ ,
326
+ "aria-disabled": isDisabled ? 'true' : undefined,
323
327
  css: styles?.baseButton,
324
328
  withFocusOutline: withFocusOutline,
325
329
  "data-cid": (0, _uiUtils.combineDataCid)('BaseButton', this.props),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-buttons",
3
- "version": "11.7.11-snapshot-18",
3
+ "version": "11.7.11-snapshot-20",
4
4
  "description": "Accessible button components",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -15,25 +15,25 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.7",
18
- "@instructure/console": "11.7.11-snapshot-18",
19
- "@instructure/emotion": "11.7.11-snapshot-18",
20
- "@instructure/shared-types": "11.7.11-snapshot-18",
21
- "@instructure/ui-a11y-content": "11.7.11-snapshot-18",
22
- "@instructure/ui-a11y-utils": "11.7.11-snapshot-18",
23
- "@instructure/ui-color-utils": "11.7.11-snapshot-18",
24
- "@instructure/ui-dom-utils": "11.7.11-snapshot-18",
25
- "@instructure/ui-icons": "11.7.11-snapshot-18",
26
- "@instructure/ui-position": "11.7.11-snapshot-18",
27
- "@instructure/ui-react-utils": "11.7.11-snapshot-18",
28
- "@instructure/ui-themes": "11.7.11-snapshot-18",
29
- "@instructure/ui-tooltip": "11.7.11-snapshot-18",
30
- "@instructure/ui-utils": "11.7.11-snapshot-18",
31
- "@instructure/ui-view": "11.7.11-snapshot-18",
18
+ "@instructure/console": "11.7.11-snapshot-20",
19
+ "@instructure/emotion": "11.7.11-snapshot-20",
20
+ "@instructure/shared-types": "11.7.11-snapshot-20",
21
+ "@instructure/ui-a11y-content": "11.7.11-snapshot-20",
22
+ "@instructure/ui-a11y-utils": "11.7.11-snapshot-20",
23
+ "@instructure/ui-color-utils": "11.7.11-snapshot-20",
24
+ "@instructure/ui-dom-utils": "11.7.11-snapshot-20",
25
+ "@instructure/ui-icons": "11.7.11-snapshot-20",
26
+ "@instructure/ui-position": "11.7.11-snapshot-20",
27
+ "@instructure/ui-react-utils": "11.7.11-snapshot-20",
28
+ "@instructure/ui-themes": "11.7.11-snapshot-20",
29
+ "@instructure/ui-tooltip": "11.7.11-snapshot-20",
30
+ "@instructure/ui-utils": "11.7.11-snapshot-20",
31
+ "@instructure/ui-view": "11.7.11-snapshot-20",
32
32
  "keycode": "^2"
33
33
  },
34
34
  "devDependencies": {
35
- "@instructure/ui-axe-check": "11.7.11-snapshot-18",
36
- "@instructure/ui-babel-preset": "11.7.11-snapshot-18",
35
+ "@instructure/ui-axe-check": "11.7.11-snapshot-20",
36
+ "@instructure/ui-babel-preset": "11.7.11-snapshot-20",
37
37
  "vitest": "^5.0.0"
38
38
  },
39
39
  "peerDependencies": {
@@ -315,6 +315,9 @@ class BaseButton extends Component<BaseButtonProps> {
315
315
  role={onClick && as !== 'button' ? 'button' : undefined}
316
316
  tabIndex={tabIndexValue}
317
317
  disabled={isDisabled || isReadOnly}
318
+ // for elements that do not support the "disabled" attribute
319
+ // "aria-disabled" needs to be added so screen readers announce it as "dimmed"
320
+ aria-disabled={isDisabled ? 'true' : undefined}
318
321
  css={styles?.baseButton}
319
322
  withFocusOutline={withFocusOutline}
320
323
  data-cid={combineDataCid('BaseButton', this.props)}
@@ -339,6 +339,9 @@ class BaseButton extends Component<BaseButtonProps> {
339
339
  role={onClick && as !== 'button' ? 'button' : undefined}
340
340
  tabIndex={tabIndexValue}
341
341
  disabled={isDisabled || isReadOnly}
342
+ // for elements that do not support the "disabled" attribute
343
+ // "aria-disabled" needs to be added so screen readers announce it as "dimmed"
344
+ aria-disabled={isDisabled ? 'true' : undefined}
342
345
  css={styles?.baseButton}
343
346
  withFocusOutline={withFocusOutline}
344
347
  data-cid={combineDataCid('BaseButton', this.props)}