@hashicorp/design-system-components 3.1.1 → 3.1.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
@@ -1,5 +1,27 @@
1
1
  # @hashicorp/design-system-components
2
2
 
3
+ ## 3.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ `AppFooter` – Fixed predefined statuses by replacing `critical` with `outage` and prevented `statusIconColor` from being overridden by `status`
8
+
9
+ <small>[#1790](https://github.com/hashicorp/design-system/pull/1790)</small>
10
+
11
+ ---
12
+
13
+ `SideNav` - Fixed visible scrollbar in collapsed SideNav when scroll bar is set to be always visible
14
+
15
+ <small>[#1786](https://github.com/hashicorp/design-system/pull/1786)</small>
16
+
17
+ ---
18
+
19
+ `CodeBlock` - Fixed `@hasLineWrapping` style to make long strings wrap when they overflow the container
20
+
21
+ <small>[#1798](https://github.com/hashicorp/design-system/pull/1798)</small>
22
+
23
+ ---
24
+
3
25
  ## 3.1.1
4
26
 
5
27
  ### Patch Changes
@@ -20,8 +20,8 @@ export const STATUSES = {
20
20
  text: 'System maintenance',
21
21
  iconName: 'alert-triangle',
22
22
  },
23
- critical: {
24
- text: 'System critical',
23
+ outage: {
24
+ text: 'System outage',
25
25
  iconName: 'x-circle',
26
26
  },
27
27
  };
@@ -67,18 +67,6 @@ export default class HdsAppFooterStatusLinkComponent extends Component {
67
67
  return this.args.statusIcon;
68
68
  }
69
69
 
70
- /**
71
- * @param statusIconColor
72
- * @type {string}
73
- * @description The color for the StatusLink icon
74
- */
75
- get statusIconColor() {
76
- if (this.status && !this.args.statusIconColor) {
77
- return STATUSES[this.status].iconColor;
78
- }
79
- return this.args.statusIconColor;
80
- }
81
-
82
70
  /**
83
71
  * Get the inline style to apply to the item.
84
72
  * @method StatusLink#itemStyle
@@ -123,8 +111,8 @@ export default class HdsAppFooterStatusLinkComponent extends Component {
123
111
  get classNames() {
124
112
  let classes = ['hds-app-footer__status-link'];
125
113
 
126
- // add a class based on the @status argument
127
- if (this.args.status) {
114
+ // add a class based on status if no statusIconColor is explicitly specified
115
+ if (this.status && !this.args.statusIconColor) {
128
116
  classes.push(`hds-app-footer__status-link--${this.status}`);
129
117
  }
130
118
 
@@ -62,8 +62,8 @@ $app-footer-icon-text-gap: 6px;
62
62
  .flight-icon { fill: var(--app-footer-status-link-icon-maintenance-color); }
63
63
  }
64
64
 
65
- .hds-app-footer__status-link--critical {
66
- .flight-icon { fill: var(--app-footer-status-link-icon-critical-color); }
65
+ .hds-app-footer__status-link--outage {
66
+ .flight-icon { fill: var(--app-footer-status-link-icon-outage-color); }
67
67
  }
68
68
 
69
69
 
@@ -127,7 +127,7 @@ $app-footer-icon-text-gap: 6px;
127
127
  --app-footer-status-link-icon-operational-color: var(--token-color-foreground-success);
128
128
  --app-footer-status-link-icon-degraded-color: var(--token-color-foreground-warning);
129
129
  --app-footer-status-link-icon-maintenance-color: var(--token-color-foreground-warning);
130
- --app-footer-status-link-icon-critical-color: var(--token-color-foreground-critical);
130
+ --app-footer-status-link-icon-outage-color: var(--token-color-foreground-critical);
131
131
  }
132
132
 
133
133
  // Dark
@@ -150,5 +150,5 @@ $app-footer-icon-text-gap: 6px;
150
150
  --app-footer-status-link-icon-operational-color: #009241;
151
151
  --app-footer-status-link-icon-degraded-color: #e88c03;
152
152
  --app-footer-status-link-icon-maintenance-color: #e88c03;
153
- --app-footer-status-link-icon-critical-color: #ef3016;
153
+ --app-footer-status-link-icon-outage-color: #ef3016;
154
154
  }
@@ -53,6 +53,7 @@ $code-block-code-padding: 16px;
53
53
  .hds-code-block__code,
54
54
  .hds-code-block__code code {
55
55
  white-space: pre-wrap;
56
+ overflow-wrap: break-word;
56
57
  }
57
58
  }
58
59
 
@@ -16,6 +16,14 @@
16
16
  // we use this trick (increasing the container size here, and reducing it at single panel level)
17
17
  // to have the panels width match the sidebar extended width (it's used in the animated sliding of the panels)
18
18
  margin: 0 calc(var(--token-side-nav-wrapper-padding-horizontal) * -1);
19
+
20
+ // we hide the content when the SideNav is collapsed to prevent the vertical scrollbar from being visible
21
+ // when the scrollbar is set to be always visible or a mouse or trackpad force it to be always visible.
22
+ // ideally we would use `display: none` but doing so would disable the fade-in transition when expanding
23
+ .hds-side-nav--is-minimized & {
24
+ height: 0;
25
+ overflow: hidden;
26
+ }
19
27
  }
20
28
 
21
29
  .hds-side-nav__content-panels {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hashicorp/design-system-components",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Helios Design System Components",
5
5
  "keywords": [
6
6
  "hashicorp",