@hashicorp/design-system-components 0.12.1 → 0.12.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 +7 -0
- package/addon/components/hds/breadcrumb/item.hbs +1 -1
- package/addon/components/hds/breadcrumb/truncation.hbs +1 -4
- package/app/styles/components/alert.scss +2 -5
- package/app/styles/components/breadcrumb.scss +5 -5
- package/app/styles/components/dropdown.scss +1 -1
- package/app/styles/mixins/_focus-ring.scss +2 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</div>
|
|
11
11
|
{{else}}
|
|
12
12
|
<LinkTo
|
|
13
|
-
class="hds-breadcrumb__link
|
|
13
|
+
class="hds-breadcrumb__link"
|
|
14
14
|
@models={{hds-link-to-models @model @models}}
|
|
15
15
|
@query={{hds-link-to-query @query}}
|
|
16
16
|
@route={{@route}}
|
|
@@ -3,10 +3,7 @@
|
|
|
3
3
|
<:toggle as |t|>
|
|
4
4
|
<button
|
|
5
5
|
type="button"
|
|
6
|
-
class="hds-breadcrumb__truncation-toggle
|
|
7
|
-
{{if @hover 'is-hover'}}
|
|
8
|
-
{{if @active 'is-active'}}
|
|
9
|
-
{{if @focus 'is-focus'}}"
|
|
6
|
+
class="hds-breadcrumb__truncation-toggle"
|
|
10
7
|
aria-expanded={{if t.isOpen "true" "false"}}
|
|
11
8
|
{{on "click" t.onClickToggle}}
|
|
12
9
|
>
|
|
@@ -84,7 +84,6 @@
|
|
|
84
84
|
color: var(--token-color-foreground-action);
|
|
85
85
|
|
|
86
86
|
&:focus,
|
|
87
|
-
&.is-focus,
|
|
88
87
|
&:focus-visible {
|
|
89
88
|
outline: 2px solid var(--token-color-focus-action-internal);
|
|
90
89
|
outline-offset: 1px;
|
|
@@ -132,8 +131,7 @@
|
|
|
132
131
|
margin-top: 1px;
|
|
133
132
|
}
|
|
134
133
|
|
|
135
|
-
&:hover
|
|
136
|
-
&.is-hover {
|
|
134
|
+
&:hover {
|
|
137
135
|
&::before { // we re-use the pseudo-element created by the "focus-ring" mixin
|
|
138
136
|
background-color: rgba(#dedfe3, 0.4);
|
|
139
137
|
}
|
|
@@ -142,8 +140,7 @@
|
|
|
142
140
|
// notice: this is used not only for the focus, but also to increase the clickable area
|
|
143
141
|
@include hds-focus-ring-with-pseudo-element($top: -4px, $right: -4px, $bottom: -4px, $left: -4px);
|
|
144
142
|
|
|
145
|
-
&:active
|
|
146
|
-
&.is-active {
|
|
143
|
+
&:active {
|
|
147
144
|
color: var(--token-color-foreground-secondary);
|
|
148
145
|
&::before {
|
|
149
146
|
background-color: rgba(#dedfe3, 0.4);
|
|
@@ -77,7 +77,7 @@ $hds-breadcrumb-item-visual-horizontal-padding: 4px;
|
|
|
77
77
|
text-decoration-color: transparent;
|
|
78
78
|
|
|
79
79
|
&:hover,
|
|
80
|
-
&.
|
|
80
|
+
&.mock-hover {
|
|
81
81
|
color: var(--token-color-palette-neutral-600);
|
|
82
82
|
|
|
83
83
|
> .hds-breadcrumb__text {
|
|
@@ -89,7 +89,7 @@ $hds-breadcrumb-item-visual-horizontal-padding: 4px;
|
|
|
89
89
|
@include hds-focus-ring-basic();
|
|
90
90
|
|
|
91
91
|
&:active,
|
|
92
|
-
&.
|
|
92
|
+
&.mock-active {
|
|
93
93
|
color: var(--token-color-foreground-secondary);
|
|
94
94
|
|
|
95
95
|
> .hds-breadcrumb__text {
|
|
@@ -155,7 +155,7 @@ $hds-breadcrumb-item-visual-horizontal-padding: 4px;
|
|
|
155
155
|
width: $hds-breadcrumb-item-height;
|
|
156
156
|
|
|
157
157
|
&:hover,
|
|
158
|
-
&.
|
|
158
|
+
&.mock-hover {
|
|
159
159
|
border-color: var(--token-color-border-strong);
|
|
160
160
|
color: var(--token-color-foreground-faint);
|
|
161
161
|
}
|
|
@@ -164,13 +164,13 @@ $hds-breadcrumb-item-visual-horizontal-padding: 4px;
|
|
|
164
164
|
@include hds-focus-ring-basic();
|
|
165
165
|
|
|
166
166
|
&:focus,
|
|
167
|
-
&.
|
|
167
|
+
&.mock-focus {
|
|
168
168
|
background-color: transparent;
|
|
169
169
|
border: none; // important: we need to completely remove the border, of the inner box-shadow of the focus ring will be drawn inside the border
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
&:active,
|
|
173
|
-
&.
|
|
173
|
+
&.mock-active {
|
|
174
174
|
background-color: var(--token-color-surface-interactive-active);
|
|
175
175
|
border-color: var(--token-color-border-strong);
|
|
176
176
|
color: var(--token-color-foreground-primary);
|
|
@@ -185,7 +185,7 @@ $hds-dropdown-toggle-border-radius: 5px;
|
|
|
185
185
|
background-color: var(--token-color-surface-interactive-active);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
&.
|
|
188
|
+
&.is-success {
|
|
189
189
|
background-color: var(--token-color-surface-success);
|
|
190
190
|
border-color: var(--token-color-border-success);
|
|
191
191
|
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
// default focus for browsers that still rely on ":focus"
|
|
10
10
|
&:focus,
|
|
11
|
-
&.is-focus,
|
|
12
11
|
&.mock-focus {
|
|
13
12
|
box-shadow: var(--token-focus-ring-#{$color}-box-shadow);
|
|
14
13
|
}
|
|
@@ -22,8 +21,7 @@
|
|
|
22
21
|
}
|
|
23
22
|
// remove the focus ring on "active + focused" state (by design)
|
|
24
23
|
&:focus:active,
|
|
25
|
-
&.
|
|
26
|
-
&.mock-focus.is-active {
|
|
24
|
+
&.mock-focus.mock-active {
|
|
27
25
|
box-shadow: none;
|
|
28
26
|
}
|
|
29
27
|
}
|
|
@@ -47,7 +45,6 @@
|
|
|
47
45
|
|
|
48
46
|
// default focus for browsers that still rely on ":focus"
|
|
49
47
|
&:focus,
|
|
50
|
-
&.is-focus,
|
|
51
48
|
&.mock-focus {
|
|
52
49
|
&::before {
|
|
53
50
|
box-shadow: var(--token-focus-ring-#{$color}-box-shadow);
|
|
@@ -67,8 +64,7 @@
|
|
|
67
64
|
}
|
|
68
65
|
// remove the focus ring on "active + focused" state (by design)
|
|
69
66
|
&:focus:active,
|
|
70
|
-
&.
|
|
71
|
-
&.mock-focus.is-active {
|
|
67
|
+
&.mock-focus.mock-active {
|
|
72
68
|
&::before {
|
|
73
69
|
box-shadow: none;
|
|
74
70
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashicorp/design-system-components",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
4
4
|
"description": "HashiCorp Design System Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hashicorp",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@hashicorp/design-system-tokens": "^0.8.0",
|
|
38
|
-
"@hashicorp/ember-flight-icons": "^2.0.
|
|
38
|
+
"@hashicorp/ember-flight-icons": "^2.0.7",
|
|
39
39
|
"ember-auto-import": "^2.4.1",
|
|
40
40
|
"ember-cli-babel": "^7.26.11",
|
|
41
41
|
"ember-cli-htmlbars": "^6.0.1",
|