@instructure/ui-side-nav-bar 8.47.2-snapshot-4 → 8.47.2-snapshot-6

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,13 @@
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
- ## [8.47.2-snapshot-4](https://github.com/instructure/instructure-ui/compare/v8.47.1...v8.47.2-snapshot-4) (2023-11-10)
6
+ ## [8.47.2-snapshot-6](https://github.com/instructure/instructure-ui/compare/v8.47.1...v8.47.2-snapshot-6) (2023-11-10)
7
7
 
8
- **Note:** Version bump only for package @instructure/ui-side-nav-bar
8
+
9
+ ### Bug Fixes
10
+
11
+ * **ui-side-nav-bar:** don't allow SideNavBar.Item to inherit global styles ([ded9542](https://github.com/instructure/instructure-ui/commit/ded954273558e2d4193838f4d878d755888c1e25))
12
+ * **ui-side-nav-bar:** increase SideNavBar.Item font weight to 400 ([53399e3](https://github.com/instructure/instructure-ui/commit/53399e3c7eb5eb196f5f7554f2fe93b2bc19bf71))
9
13
 
10
14
 
11
15
 
@@ -55,7 +55,9 @@ const generateStyle = (componentTheme, props) => {
55
55
  fill: componentTheme.selectedIconColor,
56
56
  color: componentTheme.selectedFontColor,
57
57
  '&:active, &:hover': {
58
- backgroundColor: componentTheme.selectedBackgroundColor
58
+ backgroundColor: componentTheme.selectedBackgroundColor,
59
+ color: componentTheme.selectedFontColor,
60
+ textDecoration: componentTheme.linkTextDecoration
59
61
  },
60
62
  '&:focus': {
61
63
  backgroundColor: componentTheme.selectedBackgroundColor,
@@ -69,7 +71,9 @@ const generateStyle = (componentTheme, props) => {
69
71
  backgroundColor: componentTheme.hoverBackgroundColor
70
72
  },
71
73
  '&:hover': {
72
- backgroundColor: componentTheme.hoverBackgroundColor
74
+ backgroundColor: componentTheme.hoverBackgroundColor,
75
+ color: componentTheme.fontColor,
76
+ textDecoration: componentTheme.linkTextDecoration
73
77
  },
74
78
  '&:focus': {
75
79
  backgroundColor: componentTheme.hoverBackgroundColor,
@@ -48,7 +48,7 @@ const generateComponentTheme = theme => {
48
48
  const componentVariables = {
49
49
  fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeSmall,
50
50
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
51
- fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightLight,
51
+ fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
52
52
  fontColor: colors === null || colors === void 0 ? void 0 : colors.textLightest,
53
53
  iconSize: '1.625rem',
54
54
  iconColor: colors === null || colors === void 0 ? void 0 : colors.textLightest,
@@ -61,7 +61,9 @@ const generateStyle = (componentTheme, props) => {
61
61
  fill: componentTheme.selectedIconColor,
62
62
  color: componentTheme.selectedFontColor,
63
63
  '&:active, &:hover': {
64
- backgroundColor: componentTheme.selectedBackgroundColor
64
+ backgroundColor: componentTheme.selectedBackgroundColor,
65
+ color: componentTheme.selectedFontColor,
66
+ textDecoration: componentTheme.linkTextDecoration
65
67
  },
66
68
  '&:focus': {
67
69
  backgroundColor: componentTheme.selectedBackgroundColor,
@@ -75,7 +77,9 @@ const generateStyle = (componentTheme, props) => {
75
77
  backgroundColor: componentTheme.hoverBackgroundColor
76
78
  },
77
79
  '&:hover': {
78
- backgroundColor: componentTheme.hoverBackgroundColor
80
+ backgroundColor: componentTheme.hoverBackgroundColor,
81
+ color: componentTheme.fontColor,
82
+ textDecoration: componentTheme.linkTextDecoration
79
83
  },
80
84
  '&:focus': {
81
85
  backgroundColor: componentTheme.hoverBackgroundColor,
@@ -54,7 +54,7 @@ const generateComponentTheme = theme => {
54
54
  const componentVariables = {
55
55
  fontSize: typography === null || typography === void 0 ? void 0 : typography.fontSizeSmall,
56
56
  fontFamily: typography === null || typography === void 0 ? void 0 : typography.fontFamily,
57
- fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightLight,
57
+ fontWeight: typography === null || typography === void 0 ? void 0 : typography.fontWeightNormal,
58
58
  fontColor: colors === null || colors === void 0 ? void 0 : colors.textLightest,
59
59
  iconSize: '1.625rem',
60
60
  iconColor: colors === null || colors === void 0 ? void 0 : colors.textLightest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-side-nav-bar",
3
- "version": "8.47.2-snapshot-4",
3
+ "version": "8.47.2-snapshot-6",
4
4
  "description": "Main and application level navigational components",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,32 +23,32 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-babel-preset": "8.47.2-snapshot-4",
27
- "@instructure/ui-color-utils": "8.47.2-snapshot-4",
28
- "@instructure/ui-test-locator": "8.47.2-snapshot-4",
29
- "@instructure/ui-test-utils": "8.47.2-snapshot-4",
30
- "@instructure/ui-themes": "8.47.2-snapshot-4"
26
+ "@instructure/ui-babel-preset": "8.47.2-snapshot-6",
27
+ "@instructure/ui-color-utils": "8.47.2-snapshot-6",
28
+ "@instructure/ui-test-locator": "8.47.2-snapshot-6",
29
+ "@instructure/ui-test-utils": "8.47.2-snapshot-6",
30
+ "@instructure/ui-themes": "8.47.2-snapshot-6"
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.23.2",
34
- "@instructure/console": "8.47.2-snapshot-4",
35
- "@instructure/debounce": "8.47.2-snapshot-4",
36
- "@instructure/emotion": "8.47.2-snapshot-4",
37
- "@instructure/shared-types": "8.47.2-snapshot-4",
38
- "@instructure/ui-a11y-content": "8.47.2-snapshot-4",
39
- "@instructure/ui-a11y-utils": "8.47.2-snapshot-4",
40
- "@instructure/ui-badge": "8.47.2-snapshot-4",
41
- "@instructure/ui-dom-utils": "8.47.2-snapshot-4",
42
- "@instructure/ui-focusable": "8.47.2-snapshot-4",
43
- "@instructure/ui-icons": "8.47.2-snapshot-4",
44
- "@instructure/ui-menu": "8.47.2-snapshot-4",
45
- "@instructure/ui-prop-types": "8.47.2-snapshot-4",
46
- "@instructure/ui-react-utils": "8.47.2-snapshot-4",
47
- "@instructure/ui-testable": "8.47.2-snapshot-4",
48
- "@instructure/ui-tooltip": "8.47.2-snapshot-4",
49
- "@instructure/ui-truncate-list": "8.47.2-snapshot-4",
50
- "@instructure/ui-utils": "8.47.2-snapshot-4",
51
- "@instructure/ui-view": "8.47.2-snapshot-4",
34
+ "@instructure/console": "8.47.2-snapshot-6",
35
+ "@instructure/debounce": "8.47.2-snapshot-6",
36
+ "@instructure/emotion": "8.47.2-snapshot-6",
37
+ "@instructure/shared-types": "8.47.2-snapshot-6",
38
+ "@instructure/ui-a11y-content": "8.47.2-snapshot-6",
39
+ "@instructure/ui-a11y-utils": "8.47.2-snapshot-6",
40
+ "@instructure/ui-badge": "8.47.2-snapshot-6",
41
+ "@instructure/ui-dom-utils": "8.47.2-snapshot-6",
42
+ "@instructure/ui-focusable": "8.47.2-snapshot-6",
43
+ "@instructure/ui-icons": "8.47.2-snapshot-6",
44
+ "@instructure/ui-menu": "8.47.2-snapshot-6",
45
+ "@instructure/ui-prop-types": "8.47.2-snapshot-6",
46
+ "@instructure/ui-react-utils": "8.47.2-snapshot-6",
47
+ "@instructure/ui-testable": "8.47.2-snapshot-6",
48
+ "@instructure/ui-tooltip": "8.47.2-snapshot-6",
49
+ "@instructure/ui-truncate-list": "8.47.2-snapshot-6",
50
+ "@instructure/ui-utils": "8.47.2-snapshot-6",
51
+ "@instructure/ui-view": "8.47.2-snapshot-6",
52
52
  "prop-types": "^15.8.1"
53
53
  },
54
54
  "peerDependencies": {
@@ -63,7 +63,9 @@ const generateStyle = (
63
63
  fill: componentTheme.selectedIconColor,
64
64
  color: componentTheme.selectedFontColor,
65
65
  '&:active, &:hover': {
66
- backgroundColor: componentTheme.selectedBackgroundColor
66
+ backgroundColor: componentTheme.selectedBackgroundColor,
67
+ color: componentTheme.selectedFontColor,
68
+ textDecoration: componentTheme.linkTextDecoration
67
69
  },
68
70
  '&:focus': {
69
71
  backgroundColor: componentTheme.selectedBackgroundColor,
@@ -78,7 +80,9 @@ const generateStyle = (
78
80
  backgroundColor: componentTheme.hoverBackgroundColor
79
81
  },
80
82
  '&:hover': {
81
- backgroundColor: componentTheme.hoverBackgroundColor
83
+ backgroundColor: componentTheme.hoverBackgroundColor,
84
+ color: componentTheme.fontColor,
85
+ textDecoration: componentTheme.linkTextDecoration
82
86
  },
83
87
  '&:focus': {
84
88
  backgroundColor: componentTheme.hoverBackgroundColor,
@@ -51,7 +51,7 @@ const generateComponentTheme = (theme: Theme): SideNavBarItemTheme => {
51
51
  const componentVariables: SideNavBarItemTheme = {
52
52
  fontSize: typography?.fontSizeSmall,
53
53
  fontFamily: typography?.fontFamily,
54
- fontWeight: typography?.fontWeightLight,
54
+ fontWeight: typography?.fontWeightNormal,
55
55
 
56
56
  fontColor: colors?.textLightest,
57
57
  iconSize: '1.625rem',