@instructure/ui-buttons 11.7.0 → 11.7.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
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.1-snapshot-4](https://github.com/instructure/instructure-ui/compare/v11.7.0...v11.7.1-snapshot-4) (2026-03-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ui-buttons:** fix button to icon size mapping ([4bf8ed1](https://github.com/instructure/instructure-ui/commit/4bf8ed1dca8d0d88a79815bd80b4de252fa843ee))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [11.7.0](https://github.com/instructure/instructure-ui/compare/v11.6.0...v11.7.0) (2026-03-18)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -44,15 +44,15 @@ const buttonSizeToIconSize = {
|
|
|
44
44
|
small: 'sm',
|
|
45
45
|
medium: 'md',
|
|
46
46
|
large: 'lg',
|
|
47
|
-
condensedSmall: '
|
|
48
|
-
condensedMedium: '
|
|
47
|
+
condensedSmall: 'sm',
|
|
48
|
+
condensedMedium: 'md'
|
|
49
49
|
};
|
|
50
50
|
const buttonColorToIconColor = {
|
|
51
|
-
|
|
51
|
+
primary: 'inherit',
|
|
52
52
|
'primary-inverse': 'inherit',
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
secondary: 'inherit',
|
|
54
|
+
success: 'inherit',
|
|
55
|
+
danger: 'inherit',
|
|
56
56
|
'ai-primary': 'inherit',
|
|
57
57
|
'ai-secondary': 'ai'
|
|
58
58
|
};
|
|
@@ -52,15 +52,15 @@ const buttonSizeToIconSize = {
|
|
|
52
52
|
small: 'sm',
|
|
53
53
|
medium: 'md',
|
|
54
54
|
large: 'lg',
|
|
55
|
-
condensedSmall: '
|
|
56
|
-
condensedMedium: '
|
|
55
|
+
condensedSmall: 'sm',
|
|
56
|
+
condensedMedium: 'md'
|
|
57
57
|
};
|
|
58
58
|
const buttonColorToIconColor = {
|
|
59
|
-
|
|
59
|
+
primary: 'inherit',
|
|
60
60
|
'primary-inverse': 'inherit',
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
secondary: 'inherit',
|
|
62
|
+
success: 'inherit',
|
|
63
|
+
danger: 'inherit',
|
|
64
64
|
'ai-primary': 'inherit',
|
|
65
65
|
'ai-secondary': 'ai'
|
|
66
66
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-buttons",
|
|
3
|
-
"version": "11.7.
|
|
3
|
+
"version": "11.7.1-snapshot-4",
|
|
4
4
|
"description": "Accessible button components",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -16,28 +16,28 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.27.6",
|
|
18
18
|
"keycode": "^2",
|
|
19
|
-
"@instructure/console": "11.7.
|
|
20
|
-
"@instructure/emotion": "11.7.
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/ui-
|
|
23
|
-
"@instructure/ui-a11y-content": "11.7.
|
|
24
|
-
"@instructure/ui-
|
|
25
|
-
"@instructure/
|
|
26
|
-
"@instructure/ui-icons": "11.7.
|
|
27
|
-
"@instructure/ui-
|
|
28
|
-
"@instructure/ui-
|
|
29
|
-
"@instructure/ui-
|
|
30
|
-
"@instructure/ui-utils": "11.7.
|
|
31
|
-
"@instructure/ui-view": "11.7.
|
|
19
|
+
"@instructure/console": "11.7.1-snapshot-4",
|
|
20
|
+
"@instructure/emotion": "11.7.1-snapshot-4",
|
|
21
|
+
"@instructure/ui-a11y-utils": "11.7.1-snapshot-4",
|
|
22
|
+
"@instructure/ui-color-utils": "11.7.1-snapshot-4",
|
|
23
|
+
"@instructure/ui-a11y-content": "11.7.1-snapshot-4",
|
|
24
|
+
"@instructure/ui-dom-utils": "11.7.1-snapshot-4",
|
|
25
|
+
"@instructure/shared-types": "11.7.1-snapshot-4",
|
|
26
|
+
"@instructure/ui-icons": "11.7.1-snapshot-4",
|
|
27
|
+
"@instructure/ui-react-utils": "11.7.1-snapshot-4",
|
|
28
|
+
"@instructure/ui-position": "11.7.1-snapshot-4",
|
|
29
|
+
"@instructure/ui-tooltip": "11.7.1-snapshot-4",
|
|
30
|
+
"@instructure/ui-utils": "11.7.1-snapshot-4",
|
|
31
|
+
"@instructure/ui-view": "11.7.1-snapshot-4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@testing-library/jest-dom": "^6.6.3",
|
|
35
35
|
"@testing-library/react": "15.0.7",
|
|
36
36
|
"@testing-library/user-event": "^14.6.1",
|
|
37
37
|
"vitest": "^3.2.2",
|
|
38
|
-
"@instructure/ui-axe-check": "11.7.
|
|
39
|
-
"@instructure/ui-babel-preset": "11.7.
|
|
40
|
-
"@instructure/ui-themes": "11.7.
|
|
38
|
+
"@instructure/ui-axe-check": "11.7.1-snapshot-4",
|
|
39
|
+
"@instructure/ui-babel-preset": "11.7.1-snapshot-4",
|
|
40
|
+
"@instructure/ui-themes": "11.7.1-snapshot-4"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": ">=18 <=19"
|
|
@@ -52,16 +52,16 @@ const buttonSizeToIconSize = {
|
|
|
52
52
|
small: 'sm',
|
|
53
53
|
medium: 'md',
|
|
54
54
|
large: 'lg',
|
|
55
|
-
condensedSmall: '
|
|
56
|
-
condensedMedium: '
|
|
55
|
+
condensedSmall: 'sm',
|
|
56
|
+
condensedMedium: 'md'
|
|
57
57
|
} as const
|
|
58
58
|
|
|
59
59
|
const buttonColorToIconColor = {
|
|
60
|
-
|
|
60
|
+
primary: 'inherit',
|
|
61
61
|
'primary-inverse': 'inherit',
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
secondary: 'inherit',
|
|
63
|
+
success: 'inherit',
|
|
64
|
+
danger: 'inherit',
|
|
65
65
|
'ai-primary': 'inherit',
|
|
66
66
|
'ai-secondary': 'ai'
|
|
67
67
|
} as const
|
package/src/Button/v2/README.md
CHANGED
|
@@ -195,14 +195,14 @@ type: example
|
|
|
195
195
|
|
|
196
196
|
### Rendering Buttons without backgrounds
|
|
197
197
|
|
|
198
|
-
Use backgroundless buttons when there is a need to deemphasize the button. Be sure to use border/text colors that meet the proper contrast ratios with whatever background they are placed on.
|
|
198
|
+
Use backgroundless buttons when there is a need to deemphasize the button. Be sure to use border/text colors that meet the proper contrast ratios with whatever background they are placed on. Backgroundless buttons are sometimes called `tertiary` variant.
|
|
199
199
|
|
|
200
200
|
```js
|
|
201
201
|
---
|
|
202
202
|
type: example
|
|
203
203
|
---
|
|
204
204
|
<View display="block">
|
|
205
|
-
<Button renderIcon={PlusInstUIIcon} withBackground={false} color="
|
|
205
|
+
<Button renderIcon={PlusInstUIIcon} withBackground={false} color="primary" margin="small">Click here</Button>
|
|
206
206
|
</View>
|
|
207
207
|
```
|
|
208
208
|
|