@hashicorp/design-system-components 2.8.0 → 2.8.1
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 +18 -0
- package/addon/components/hds/accordion/item/button.hbs +5 -0
- package/addon/components/hds/accordion/item/index.hbs +5 -0
- package/addon/components/hds/form/text-input/base.js +1 -0
- package/addon/components/hds/page-header/index.hbs +1 -1
- package/app/styles/components/form/text-input.scss +4 -2
- package/app/styles/components/page-header.scss +14 -1
- package/app/styles/components/side-nav/content.scss +2 -2
- package/app/styles/components/side-nav/main.scss +13 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @hashicorp/design-system-components
|
|
2
2
|
|
|
3
|
+
## 2.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1516](https://github.com/hashicorp/design-system/pull/1516) [`f2192cad7`](https://github.com/hashicorp/design-system/commit/f2192cad73b6d966bf813f54dcee02e157c76392) Thanks [@didoo](https://github.com/didoo)! - `SideNav` - Fixed issue with links still being interactive (even if visually hidden) when the navigation is "minimized"
|
|
8
|
+
|
|
9
|
+
- [#1518](https://github.com/hashicorp/design-system/pull/1518) [`5fd48e31e`](https://github.com/hashicorp/design-system/commit/5fd48e31ed3241ee19a8226bb28fa04ad79479c5) Thanks [@didoo](https://github.com/didoo)! - `PageHeader` - Fixed overflow of non-breaking text for `title`, `subtitle` and `description` elements
|
|
10
|
+
|
|
11
|
+
- [#1494](https://github.com/hashicorp/design-system/pull/1494) [`169a85b63`](https://github.com/hashicorp/design-system/commit/169a85b6348649bc0e2411f3ab6f6a086eecb692) Thanks [@natmegs](https://github.com/natmegs)! - `Form::TextInput` - Add support for datetime-local type
|
|
12
|
+
|
|
13
|
+
- [#1500](https://github.com/hashicorp/design-system/pull/1500) [`b6c2867a4`](https://github.com/hashicorp/design-system/commit/b6c2867a4b7d1c183e9a17d16208ed12ce1aa43f) Thanks [@didoo](https://github.com/didoo)! - - `SideNav` - updated layout styling for the `SideNav::List::Title` element
|
|
14
|
+
|
|
15
|
+
- [#1520](https://github.com/hashicorp/design-system/pull/1520) [`7f7ec22c3`](https://github.com/hashicorp/design-system/commit/7f7ec22c387ac9df05d05de31e5c2b45d6324777) Thanks [@alex-ju](https://github.com/alex-ju)! - Upgrade `ember-style-modifier` to `3.0.1`
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [[`fd5953633`](https://github.com/hashicorp/design-system/commit/fd595363396c2e6672025ab8f9c3df7d2a3fce53)]:
|
|
18
|
+
- @hashicorp/design-system-tokens@1.7.0
|
|
19
|
+
- @hashicorp/ember-flight-icons@3.0.8
|
|
20
|
+
|
|
3
21
|
## 2.8.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
{{yield (hash IconTile=(component "hds/icon-tile" size="medium"))}}
|
|
9
9
|
<div class="hds-page-header__main">
|
|
10
10
|
<div class="hds-page-header__content">
|
|
11
|
-
<div class="hds-page-header__title-
|
|
11
|
+
<div class="hds-page-header__title-wrapper">
|
|
12
12
|
{{yield (hash Title=(component "hds/page-header/title"))}}
|
|
13
13
|
{{yield (hash Badges=(component "hds/page-header/badges"))}}
|
|
14
14
|
</div>
|
|
@@ -88,7 +88,8 @@
|
|
|
88
88
|
// DATE/TIME
|
|
89
89
|
|
|
90
90
|
&[type="date"],
|
|
91
|
-
&[type="time"]
|
|
91
|
+
&[type="time"],
|
|
92
|
+
&[type="datetime-local"] {
|
|
92
93
|
|
|
93
94
|
// browsers set a specific width for these controls, we want to keep it
|
|
94
95
|
width: initial;
|
|
@@ -108,7 +109,8 @@
|
|
|
108
109
|
|
|
109
110
|
// we override the default icon with the Flight corresponding one
|
|
110
111
|
// notice: the original in Chrome has two assets, one for light and one for dark mode, and uses a special syntax, but apparently it doesn't work if used in a stylesheet
|
|
111
|
-
&[type="date"]
|
|
112
|
+
&[type="date"],
|
|
113
|
+
&[type="datetime-local"] {
|
|
112
114
|
&::-webkit-calendar-picker-indicator {
|
|
113
115
|
background-image: var(--token-form-text-input-background-image-data-url-date);
|
|
114
116
|
background-position: center center;
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
@container (min-width: 768px) {
|
|
43
43
|
flex-direction: row;
|
|
44
44
|
justify-content: space-between;
|
|
45
|
+
min-width: 0; // this is important or it will blow beyond the parent flexbox width with long non-breaking names
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
|
|
@@ -50,9 +51,11 @@
|
|
|
50
51
|
flex-direction: column;
|
|
51
52
|
flex-grow: 1;
|
|
52
53
|
gap: 8px;
|
|
54
|
+
min-width: 0; // this is important or it will blow beyond the parent flexbox width with long non-breaking names
|
|
55
|
+
max-width: 100%;
|
|
53
56
|
}
|
|
54
57
|
|
|
55
|
-
.hds-page-header__title-
|
|
58
|
+
.hds-page-header__title-wrapper {
|
|
56
59
|
display: flex;
|
|
57
60
|
flex-direction: row;
|
|
58
61
|
flex-wrap: wrap;
|
|
@@ -60,6 +63,11 @@
|
|
|
60
63
|
align-items: center;
|
|
61
64
|
}
|
|
62
65
|
|
|
66
|
+
.hds-page-header__title {
|
|
67
|
+
max-width: 100%;
|
|
68
|
+
overflow-wrap: break-word;
|
|
69
|
+
}
|
|
70
|
+
|
|
63
71
|
.hds-page-header__badges-wrapper {
|
|
64
72
|
display: flex;
|
|
65
73
|
flex-wrap: wrap;
|
|
@@ -72,6 +80,11 @@
|
|
|
72
80
|
gap: 4px;
|
|
73
81
|
}
|
|
74
82
|
|
|
83
|
+
.hds-page-header__subtitle,
|
|
84
|
+
.hds-page-header__description {
|
|
85
|
+
overflow-wrap: break-word;
|
|
86
|
+
}
|
|
87
|
+
|
|
75
88
|
.hds-page-header__actions {
|
|
76
89
|
display: flex;
|
|
77
90
|
flex-direction: row;
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
.hds-side-nav__list-title {
|
|
35
35
|
display: flex;
|
|
36
36
|
align-items: center;
|
|
37
|
-
min-height:
|
|
37
|
+
min-height: var(--token-side-nav-body-list-item-height);
|
|
38
38
|
margin-top: var(--token-side-nav-body-list-margin-vertical);
|
|
39
|
-
padding:
|
|
39
|
+
padding: 9px var(--token-side-nav-body-list-item-padding-horizontal); // 8px = (min-height - body-100-line-height) / 2
|
|
40
40
|
color: var(--token-side-nav-color-foreground-faint);
|
|
41
41
|
|
|
42
42
|
// Remove margin from title at top of all list-items & lists
|
|
@@ -191,6 +191,19 @@
|
|
|
191
191
|
visibility: hidden !important; // we need `!important` here to override the inline style applied to the single panels
|
|
192
192
|
opacity: 0;
|
|
193
193
|
transition: none;
|
|
194
|
+
// this is needed because, despite the element having `visibility: hidden`,
|
|
195
|
+
// the child elements ("panels") have their visibility dynamically managed via JS
|
|
196
|
+
// and when they have "visibility: visible" applied, they are not visually visible
|
|
197
|
+
// (because of the `opacity: 0` of the parent) but the user can still interact with them
|
|
198
|
+
// and click on the links inside the sidenav even if they're not visible at all,
|
|
199
|
+
// so we have to block the interactivity of the whole container
|
|
200
|
+
// for reference see these PRs:
|
|
201
|
+
// - https://github.com/hashicorp/design-system/pull/1338
|
|
202
|
+
// - https://github.com/hashicorp/design-system/pull/1388
|
|
203
|
+
// - https://github.com/hashicorp/design-system/pull/1516
|
|
204
|
+
// and this codepen with a redux of the problem:
|
|
205
|
+
// - https://codepen.io/didoo/pen/mdQKMJW?editors=1100
|
|
206
|
+
pointer-events: none;
|
|
194
207
|
}
|
|
195
208
|
|
|
196
209
|
.hds-side-nav--is-mobile.hds-side-nav--is-not-minimized &,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashicorp/design-system-components",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.1",
|
|
4
4
|
"description": "Helios Design System Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hashicorp",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@ember/render-modifiers": "^2.0.5",
|
|
43
|
-
"@hashicorp/design-system-tokens": "^1.
|
|
44
|
-
"@hashicorp/ember-flight-icons": "^3.0.
|
|
43
|
+
"@hashicorp/design-system-tokens": "^1.7.0",
|
|
44
|
+
"@hashicorp/ember-flight-icons": "^3.0.8",
|
|
45
45
|
"dialog-polyfill": "^0.5.6",
|
|
46
46
|
"ember-a11y-refocus": "^3.0.2",
|
|
47
47
|
"ember-auto-import": "^2.6.3",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"ember-keyboard": "^8.2.0",
|
|
55
55
|
"ember-named-blocks-polyfill": "^0.2.5",
|
|
56
56
|
"ember-stargate": "^0.4.3",
|
|
57
|
-
"ember-style-modifier": "^0.
|
|
57
|
+
"ember-style-modifier": "^3.0.1",
|
|
58
58
|
"ember-truth-helpers": "^3.1.1",
|
|
59
59
|
"sass": "^1.62.1",
|
|
60
60
|
"tippy.js": "^6.3.7"
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"prettier": "^2.8.8",
|
|
103
103
|
"qunit": "^2.19.4",
|
|
104
104
|
"qunit-dom": "^2.0.0",
|
|
105
|
-
"stylelint": "^
|
|
105
|
+
"stylelint": "^15.10.1",
|
|
106
106
|
"stylelint-config-rational-order": "^0.1.2",
|
|
107
107
|
"stylelint-config-standard-scss": "^5.0.0",
|
|
108
108
|
"webpack": "^5.84.1"
|