@instructure/ui-link 10.8.0 → 10.8.1-snapshot-2

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
+ ## [10.8.1-snapshot-2](https://github.com/instructure/instructure-ui/compare/v10.8.0...v10.8.1-snapshot-2) (2024-12-11)
7
+
8
+
9
+ ### Features
10
+
11
+ * **link:** add textUnderlineOffset to Link component theme override ([2b2a997](https://github.com/instructure/instructure-ui/commit/2b2a997d8c255c2568b44c755754a5fa3bdd0468))
12
+
13
+
14
+
15
+
16
+
6
17
  # [10.8.0](https://github.com/instructure/instructure-ui/compare/v10.7.0...v10.8.0) (2024-12-09)
7
18
 
8
19
  **Note:** Version bump only for package @instructure/ui-link
package/es/Link/styles.js CHANGED
@@ -52,6 +52,7 @@ const generateStyle = (componentTheme, props, state) => {
52
52
  outlineStyle: componentTheme.focusOutlineStyle,
53
53
  borderRadius: componentTheme.focusOutlineBorderRadius,
54
54
  outlineOffset: '0.25rem',
55
+ textUnderlineOffset: componentTheme.textUnderlineOffset,
55
56
  // If TruncateText is used in Link with icon, align the icon and the text vertically
56
57
  ...(renderIcon && containsTruncateText && hasVisibleChildren && {
57
58
  alignItems: 'center'
package/es/Link/theme.js CHANGED
@@ -69,7 +69,8 @@ const generateComponentTheme = theme => {
69
69
  focusInverseIconOutlineColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts6 = colors.contrasts) === null || _colors$contrasts6 === void 0 ? void 0 : _colors$contrasts6.white1010,
70
70
  iconSize: '1.125em',
71
71
  // make icon slightly larger than inherited font-size,
72
- iconPlusTextMargin: spacing === null || spacing === void 0 ? void 0 : spacing.xxSmall
72
+ iconPlusTextMargin: spacing === null || spacing === void 0 ? void 0 : spacing.xxSmall,
73
+ textUnderlineOffset: 'auto'
73
74
  };
74
75
  return {
75
76
  ...componentVariables,
@@ -58,6 +58,7 @@ const generateStyle = (componentTheme, props, state) => {
58
58
  outlineStyle: componentTheme.focusOutlineStyle,
59
59
  borderRadius: componentTheme.focusOutlineBorderRadius,
60
60
  outlineOffset: '0.25rem',
61
+ textUnderlineOffset: componentTheme.textUnderlineOffset,
61
62
  // If TruncateText is used in Link with icon, align the icon and the text vertically
62
63
  ...(renderIcon && containsTruncateText && hasVisibleChildren && {
63
64
  alignItems: 'center'
package/lib/Link/theme.js CHANGED
@@ -75,7 +75,8 @@ const generateComponentTheme = theme => {
75
75
  focusInverseIconOutlineColor: colors === null || colors === void 0 ? void 0 : (_colors$contrasts6 = colors.contrasts) === null || _colors$contrasts6 === void 0 ? void 0 : _colors$contrasts6.white1010,
76
76
  iconSize: '1.125em',
77
77
  // make icon slightly larger than inherited font-size,
78
- iconPlusTextMargin: spacing === null || spacing === void 0 ? void 0 : spacing.xxSmall
78
+ iconPlusTextMargin: spacing === null || spacing === void 0 ? void 0 : spacing.xxSmall,
79
+ textUnderlineOffset: 'auto'
79
80
  };
80
81
  return {
81
82
  ...componentVariables,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-link",
3
- "version": "10.8.0",
3
+ "version": "10.8.1-snapshot-2",
4
4
  "description": "A component for creating links",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,29 +23,29 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
- "@babel/runtime": "^7.25.6",
27
- "@instructure/console": "10.8.0",
28
- "@instructure/emotion": "10.8.0",
29
- "@instructure/shared-types": "10.8.0",
30
- "@instructure/ui-a11y-utils": "10.8.0",
31
- "@instructure/ui-color-utils": "10.8.0",
32
- "@instructure/ui-dom-utils": "10.8.0",
33
- "@instructure/ui-icons": "10.8.0",
34
- "@instructure/ui-prop-types": "10.8.0",
35
- "@instructure/ui-react-utils": "10.8.0",
36
- "@instructure/ui-testable": "10.8.0",
37
- "@instructure/ui-view": "10.8.0",
26
+ "@babel/runtime": "^7.26.0",
27
+ "@instructure/console": "10.8.1-snapshot-2",
28
+ "@instructure/emotion": "10.8.1-snapshot-2",
29
+ "@instructure/shared-types": "10.8.1-snapshot-2",
30
+ "@instructure/ui-a11y-utils": "10.8.1-snapshot-2",
31
+ "@instructure/ui-color-utils": "10.8.1-snapshot-2",
32
+ "@instructure/ui-dom-utils": "10.8.1-snapshot-2",
33
+ "@instructure/ui-icons": "10.8.1-snapshot-2",
34
+ "@instructure/ui-prop-types": "10.8.1-snapshot-2",
35
+ "@instructure/ui-react-utils": "10.8.1-snapshot-2",
36
+ "@instructure/ui-testable": "10.8.1-snapshot-2",
37
+ "@instructure/ui-view": "10.8.1-snapshot-2",
38
38
  "prop-types": "^15.8.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@instructure/ui-axe-check": "10.8.0",
42
- "@instructure/ui-babel-preset": "10.8.0",
43
- "@instructure/ui-test-utils": "10.8.0",
44
- "@instructure/ui-themes": "10.8.0",
45
- "@testing-library/jest-dom": "^6.4.5",
41
+ "@instructure/ui-axe-check": "10.8.1-snapshot-2",
42
+ "@instructure/ui-babel-preset": "10.8.1-snapshot-2",
43
+ "@instructure/ui-test-utils": "10.8.1-snapshot-2",
44
+ "@instructure/ui-themes": "10.8.1-snapshot-2",
45
+ "@testing-library/jest-dom": "^6.6.3",
46
46
  "@testing-library/react": "^16.0.1",
47
47
  "@testing-library/user-event": "^14.5.2",
48
- "vitest": "^2.1.1"
48
+ "vitest": "^2.1.8"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "react": ">=16.14 <=18"
@@ -57,6 +57,7 @@ const generateStyle = (
57
57
  outlineStyle: componentTheme.focusOutlineStyle,
58
58
  borderRadius: componentTheme.focusOutlineBorderRadius,
59
59
  outlineOffset: '0.25rem',
60
+ textUnderlineOffset: componentTheme.textUnderlineOffset,
60
61
 
61
62
  // If TruncateText is used in Link with icon, align the icon and the text vertically
62
63
  ...(renderIcon &&
package/src/Link/theme.ts CHANGED
@@ -71,7 +71,8 @@ const generateComponentTheme = (theme: Theme): LinkTheme => {
71
71
  focusInverseIconOutlineColor: colors?.contrasts?.white1010,
72
72
 
73
73
  iconSize: '1.125em', // make icon slightly larger than inherited font-size,
74
- iconPlusTextMargin: spacing?.xxSmall
74
+ iconPlusTextMargin: spacing?.xxSmall,
75
+ textUnderlineOffset: 'auto'
75
76
  }
76
77
 
77
78
  return {