@hashicorp/design-system-components 0.0.15 → 0.0.19
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/.github/pull_request_template.md. +26 -0
- package/README.md +6 -0
- package/app/styles/components/badge-count.scss +1 -1
- package/app/styles/components/badge.scss +1 -1
- package/app/styles/components/button.scss +1 -1
- package/app/styles/components/link/standalone.scss +18 -7
- package/app/styles/mixins/_generic-focus-state.scss +1 -2
- package/package.json +4 -2
- package/.node_modules.ember-try/source-map-url/.jshintrc +0 -43
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
## :pushpin: Summary
|
|
2
|
+
|
|
3
|
+
<!-- TLDR that includes the purpose of the PR e.g. "If merged, this PR..." -->
|
|
4
|
+
|
|
5
|
+
## :busts_in_silhouette: How to review this PR
|
|
6
|
+
|
|
7
|
+
<!-- Check one box -->
|
|
8
|
+
|
|
9
|
+
- [ ] Review commit-by-commit (please copy commit info to "Summary" for clarity)
|
|
10
|
+
- [ ] Review by "Files changed"
|
|
11
|
+
|
|
12
|
+
## :camera_flash: Screenshots
|
|
13
|
+
|
|
14
|
+
<!-- A picture is a thousand words -->
|
|
15
|
+
|
|
16
|
+
## :link: External links
|
|
17
|
+
|
|
18
|
+
<!-- Asana issues, RFCs, etc. -->
|
|
19
|
+
|
|
20
|
+
## :memo: Is it documented?
|
|
21
|
+
|
|
22
|
+
- [ ] Please confirm that this change is documented on the website!
|
|
23
|
+
|
|
24
|
+
***
|
|
25
|
+
|
|
26
|
+
:speech_balloon: Please consider using [conventional comments](https://conventionalcomments.org/) when reviewing this PR.
|
package/README.md
CHANGED
|
@@ -27,6 +27,12 @@ Then add this line to the top of your app's style file (`app.scss` or similar):
|
|
|
27
27
|
@import '@hashicorp/design-system-components';
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
+
Usage
|
|
31
|
+
------------------------------------------------------------------------------
|
|
32
|
+
|
|
33
|
+
See the dedicated components website: https://design-system-components-hashicorp.vercel.app/
|
|
34
|
+
|
|
35
|
+
|
|
30
36
|
Contributing
|
|
31
37
|
------------------------------------------------------------------------------
|
|
32
38
|
|
|
@@ -17,7 +17,7 @@ $hds-badge-count-border-width: 1px;
|
|
|
17
17
|
border: $hds-badge-count-border-width solid transparent;
|
|
18
18
|
box-sizing: border-box;
|
|
19
19
|
display: inline-flex;
|
|
20
|
-
font-family: var(--token-typography-
|
|
20
|
+
font-family: var(--token-typography-font-stack-text);
|
|
21
21
|
max-width: 100%;
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -20,7 +20,7 @@ $hds-button-focus-border-width: 3px;
|
|
|
20
20
|
border-radius: $hds-button-border-radius;
|
|
21
21
|
box-sizing: border-box; // TODO https://github.com/hashicorp/design-system-components/issues/46
|
|
22
22
|
display: flex;
|
|
23
|
-
font-family: var(--token-typography-
|
|
23
|
+
font-family: var(--token-typography-font-stack-text);
|
|
24
24
|
justify-content: center;
|
|
25
25
|
outline-color: transparent; // We need this to be transparent for a11y
|
|
26
26
|
max-width: fit-content;
|
|
@@ -20,7 +20,8 @@ $hds-link-standalone-border-width: 1px;
|
|
|
20
20
|
border: $hds-link-standalone-border-width solid transparent; // needs to exist AND be transparent for a11y
|
|
21
21
|
color: var(--token-color-action-foreground-on-faint);
|
|
22
22
|
display: flex;
|
|
23
|
-
font-family: var(--token-typography-
|
|
23
|
+
font-family: var(--token-typography-font-stack-text);
|
|
24
|
+
isolation: isolate; // used to create a new stacking context (needed to have the pseudo element below text/icon but not the parent container)
|
|
24
25
|
justify-content: center;
|
|
25
26
|
outline-color: transparent;
|
|
26
27
|
position: relative;
|
|
@@ -124,31 +125,38 @@ $size-props: (
|
|
|
124
125
|
&.is-hover {
|
|
125
126
|
text-decoration: underline;
|
|
126
127
|
transition: text-decoration-color 0.25s ease-in;
|
|
127
|
-
// TODO!
|
|
128
|
-
// discuss with Heather if she wants that we add calculation for text-decoration offset
|
|
129
128
|
}
|
|
130
129
|
&:active,
|
|
131
130
|
&.is-active {
|
|
132
131
|
text-decoration: underline;
|
|
133
132
|
|
|
134
|
-
|
|
133
|
+
}
|
|
134
|
+
// remove the focus ring on "active + focused" state (by design)
|
|
135
|
+
&:focus:active,
|
|
136
|
+
&:focus-visible:active,
|
|
137
|
+
&.is-focus.is-active {
|
|
135
138
|
&::before {
|
|
136
139
|
content: none;
|
|
137
140
|
}
|
|
138
141
|
}
|
|
142
|
+
|
|
139
143
|
}
|
|
140
144
|
|
|
141
145
|
.hds-link-standalone--color-primary {
|
|
142
|
-
color: var(--token-color-action-foreground-
|
|
146
|
+
color: var(--token-color-action-foreground-primary);
|
|
143
147
|
|
|
144
148
|
&:hover,
|
|
145
149
|
&.is-hover {
|
|
150
|
+
color: var(--token-color-action-background-hover);
|
|
146
151
|
text-decoration-color: #4E81E8; // custom color by design
|
|
147
152
|
}
|
|
148
153
|
&:active,
|
|
149
154
|
&.is-active {
|
|
150
|
-
color: var(--token-color-action-
|
|
151
|
-
text-decoration-color: #
|
|
155
|
+
color: var(--token-color-action-background-active);
|
|
156
|
+
text-decoration-color: #396ED6; // custom color by design
|
|
157
|
+
&::before {
|
|
158
|
+
background-color: var(--token-color-action-background-faint);
|
|
159
|
+
}
|
|
152
160
|
}
|
|
153
161
|
}
|
|
154
162
|
|
|
@@ -163,5 +171,8 @@ $size-props: (
|
|
|
163
171
|
&.is-active {
|
|
164
172
|
color: var(--token-color-neutral-foreground-secondary);
|
|
165
173
|
text-decoration-color: #6E7075; // custom color by design
|
|
174
|
+
&::before {
|
|
175
|
+
background-color: var(--token-color-palette-neutral-200);
|
|
176
|
+
}
|
|
166
177
|
}
|
|
167
178
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
@mixin hds-generic-focus-state() {
|
|
2
|
-
box-shadow:
|
|
3
|
-
0px 0px 0px 3px #5990ff; // this is a special color used only for the focus style, to pass color contrast for a11y purpose
|
|
2
|
+
box-shadow: var(--token-focus-ring-box-shadow);
|
|
4
3
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hashicorp/design-system-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "HashiCorp Design System Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hashicorp",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"prepare": "husky install"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@hashicorp/design-system-tokens": "^0.
|
|
64
|
+
"@hashicorp/design-system-tokens": "^0.4.7",
|
|
65
65
|
"@hashicorp/ember-flight-icons": "^2.0.0",
|
|
66
66
|
"ember-cli-babel": "^7.26.6",
|
|
67
67
|
"ember-cli-htmlbars": "^5.7.1",
|
|
@@ -81,12 +81,14 @@
|
|
|
81
81
|
"ember-a11y-refocus": "^2.1.0",
|
|
82
82
|
"ember-auto-import": "^2.2.3",
|
|
83
83
|
"ember-cli": "~3.28.4",
|
|
84
|
+
"ember-cli-clipboard": "^0.15.0",
|
|
84
85
|
"ember-cli-dependency-checker": "^3.2.0",
|
|
85
86
|
"ember-cli-inject-live-reload": "^2.1.0",
|
|
86
87
|
"ember-cli-markdown-it-templates": "^0.0.3",
|
|
87
88
|
"ember-cli-sri": "^2.1.1",
|
|
88
89
|
"ember-cli-string-helpers": "^6.1.0",
|
|
89
90
|
"ember-cli-terser": "^4.0.2",
|
|
91
|
+
"ember-concurrency": "^2.2.0",
|
|
90
92
|
"ember-disable-prototype-extensions": "^1.1.3",
|
|
91
93
|
"ember-export-application-global": "^2.0.1",
|
|
92
94
|
"ember-load-initializers": "^2.1.2",
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"bitwise": true,
|
|
3
|
-
"camelcase": true,
|
|
4
|
-
"curly": false,
|
|
5
|
-
"eqeqeq": true,
|
|
6
|
-
"es3": true,
|
|
7
|
-
"forin": true,
|
|
8
|
-
"immed": false,
|
|
9
|
-
"indent": false,
|
|
10
|
-
"latedef": "nofunc",
|
|
11
|
-
"newcap": false,
|
|
12
|
-
"noarg": true,
|
|
13
|
-
"noempty": true,
|
|
14
|
-
"nonew": false,
|
|
15
|
-
"plusplus": false,
|
|
16
|
-
"quotmark": false,
|
|
17
|
-
"undef": true,
|
|
18
|
-
"unused": "vars",
|
|
19
|
-
"strict": false,
|
|
20
|
-
"trailing": true,
|
|
21
|
-
"maxparams": 5,
|
|
22
|
-
"maxdepth": false,
|
|
23
|
-
"maxstatements": false,
|
|
24
|
-
"maxcomplexity": false,
|
|
25
|
-
"maxlen": 100,
|
|
26
|
-
|
|
27
|
-
"asi": true,
|
|
28
|
-
"expr": true,
|
|
29
|
-
"globalstrict": true,
|
|
30
|
-
"smarttabs": true,
|
|
31
|
-
"sub": true,
|
|
32
|
-
|
|
33
|
-
"node": true,
|
|
34
|
-
"globals": {
|
|
35
|
-
"describe": false,
|
|
36
|
-
"it": false,
|
|
37
|
-
"before": false,
|
|
38
|
-
"beforeEach": false,
|
|
39
|
-
"after": false,
|
|
40
|
-
"afterEach": false,
|
|
41
|
-
"define": false
|
|
42
|
-
}
|
|
43
|
-
}
|