|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
3 | 3 | exports[`Link applies button styles when rendering a button element 1`] = `
|
4 |
| -.c1 { |
5 |
| - color: var(--fgColor-accent,var(--color-accent-fg,#0969da)); |
6 |
| - -webkit-text-decoration: none; |
7 |
| - text-decoration: none; |
8 |
| -} |
9 |
| -
|
10 |
| -[data-a11y-link-underlines='true'] .c0[data-inline='true'] { |
11 |
| - -webkit-text-decoration: underline; |
12 |
| - text-decoration: underline; |
13 |
| -} |
14 |
| -
|
15 |
| -.c1:hover { |
16 |
| - -webkit-text-decoration: underline; |
17 |
| - text-decoration: underline; |
18 |
| -} |
19 |
| -
|
20 |
| -.c1:is(button) { |
21 |
| - display: inline-block; |
22 |
| - padding: 0; |
23 |
| - font-size: inherit; |
24 |
| - white-space: nowrap; |
25 |
| - cursor: pointer; |
26 |
| - -webkit-user-select: none; |
27 |
| - -moz-user-select: none; |
28 |
| - -ms-user-select: none; |
29 |
| - user-select: none; |
30 |
| - background-color: transparent; |
31 |
| - border: 0; |
32 |
| - -webkit-appearance: none; |
33 |
| - -moz-appearance: none; |
34 |
| - appearance: none; |
35 |
| -} |
36 |
| -
|
37 | 4 | <button
|
38 |
| - className="c0 c1" |
| 5 | + className="Link" |
39 | 6 | />
|
40 | 7 | `;
|
41 | 8 |
|
42 | 9 | exports[`Link passes href down to link element 1`] = `
|
43 |
| -.c1 { |
44 |
| - color: var(--fgColor-accent,var(--color-accent-fg,#0969da)); |
45 |
| - -webkit-text-decoration: none; |
46 |
| - text-decoration: none; |
47 |
| -} |
48 |
| -
|
49 |
| -[data-a11y-link-underlines='true'] .c0[data-inline='true'] { |
50 |
| - -webkit-text-decoration: underline; |
51 |
| - text-decoration: underline; |
52 |
| -} |
53 |
| -
|
54 |
| -.c1:hover { |
55 |
| - -webkit-text-decoration: underline; |
56 |
| - text-decoration: underline; |
57 |
| -} |
58 |
| -
|
59 |
| -.c1:is(button) { |
60 |
| - display: inline-block; |
61 |
| - padding: 0; |
62 |
| - font-size: inherit; |
63 |
| - white-space: nowrap; |
64 |
| - cursor: pointer; |
65 |
| - -webkit-user-select: none; |
66 |
| - -moz-user-select: none; |
67 |
| - -ms-user-select: none; |
68 |
| - user-select: none; |
69 |
| - background-color: transparent; |
70 |
| - border: 0; |
71 |
| - -webkit-appearance: none; |
72 |
| - -moz-appearance: none; |
73 |
| - appearance: none; |
74 |
| -} |
75 |
| -
|
76 | 10 | <a
|
77 |
| - className="c0 c1" |
| 11 | + className="Link" |
78 | 12 | href="https://github.com"
|
79 | 13 | />
|
80 | 14 | `;
|
81 | 15 |
|
82 | 16 | exports[`Link respects hoverColor prop 1`] = `
|
83 |
| -.c1 { |
84 |
| - color: var(--fgColor-accent,var(--color-accent-fg,#0969da)); |
85 |
| - -webkit-text-decoration: none; |
86 |
| - text-decoration: none; |
87 |
| -} |
88 |
| -
|
89 |
| -[data-a11y-link-underlines='true'] .c0[data-inline='true'] { |
90 |
| - -webkit-text-decoration: underline; |
91 |
| - text-decoration: underline; |
92 |
| -} |
93 |
| -
|
94 |
| -.c1:hover { |
95 |
| - -webkit-text-decoration: underline; |
96 |
| - text-decoration: underline; |
97 |
| - color: var(--fgColor-accent,var(--color-accent-fg,#0969da)); |
98 |
| -} |
99 |
| -
|
100 |
| -.c1:is(button) { |
101 |
| - display: inline-block; |
102 |
| - padding: 0; |
103 |
| - font-size: inherit; |
104 |
| - white-space: nowrap; |
105 |
| - cursor: pointer; |
106 |
| - -webkit-user-select: none; |
107 |
| - -moz-user-select: none; |
108 |
| - -ms-user-select: none; |
109 |
| - user-select: none; |
110 |
| - background-color: transparent; |
111 |
| - border: 0; |
112 |
| - -webkit-appearance: none; |
113 |
| - -moz-appearance: none; |
114 |
| - appearance: none; |
115 |
| -} |
116 |
| -
|
117 | 17 | <a
|
118 |
| - className="c0 c1" |
| 18 | + className="Link" |
| 19 | + hoverColor="accent.fg" |
119 | 20 | />
|
120 | 21 | `;
|
121 | 22 |
|
122 | 23 | exports[`Link respects the "sx" prop when "muted" prop is also passed 1`] = `
|
123 |
| -.c1 { |
124 |
| - color: var(--fgColor-muted,var(--color-fg-muted,#656d76)); |
125 |
| - -webkit-text-decoration: none; |
126 |
| - text-decoration: none; |
| 24 | +.c0 { |
127 | 25 | color: var(--fgColor-onEmphasis,var(--color-fg-on-emphasis,#ffffff));
|
128 | 26 | }
|
129 | 27 |
|
130 |
| -[data-a11y-link-underlines='true'] .c0[data-inline='true'] { |
131 |
| - -webkit-text-decoration: underline; |
132 |
| - text-decoration: underline; |
133 |
| -} |
134 |
| -
|
135 |
| -.c1:hover { |
136 |
| - -webkit-text-decoration: none; |
137 |
| - text-decoration: none; |
138 |
| - color: var(--fgColor-accent,var(--color-accent-fg,#0969da)); |
139 |
| -} |
140 |
| -
|
141 |
| -.c1:is(button) { |
142 |
| - display: inline-block; |
143 |
| - padding: 0; |
144 |
| - font-size: inherit; |
145 |
| - white-space: nowrap; |
146 |
| - cursor: pointer; |
147 |
| - -webkit-user-select: none; |
148 |
| - -moz-user-select: none; |
149 |
| - -ms-user-select: none; |
150 |
| - user-select: none; |
151 |
| - background-color: transparent; |
152 |
| - border: 0; |
153 |
| - -webkit-appearance: none; |
154 |
| - -moz-appearance: none; |
155 |
| - appearance: none; |
156 |
| -} |
157 |
| -
|
158 | 28 | <a
|
159 |
| - className="c0 c1" |
| 29 | + className="c0 Link" |
| 30 | + data-muted={true} |
160 | 31 | muted={true}
|
161 | 32 | />
|
162 | 33 | `;
|
163 | 34 |
|
164 | 35 | exports[`Link respects the "muted" prop 1`] = `
|
165 |
| -.c1 { |
166 |
| - color: var(--fgColor-muted,var(--color-fg-muted,#656d76)); |
167 |
| - -webkit-text-decoration: none; |
168 |
| - text-decoration: none; |
169 |
| -} |
170 |
| -
|
171 |
| -[data-a11y-link-underlines='true'] .c0[data-inline='true'] { |
172 |
| - -webkit-text-decoration: underline; |
173 |
| - text-decoration: underline; |
174 |
| -} |
175 |
| -
|
176 |
| -.c1:hover { |
177 |
| - -webkit-text-decoration: none; |
178 |
| - text-decoration: none; |
179 |
| - color: var(--fgColor-accent,var(--color-accent-fg,#0969da)); |
180 |
| -} |
181 |
| -
|
182 |
| -.c1:is(button) { |
183 |
| - display: inline-block; |
184 |
| - padding: 0; |
185 |
| - font-size: inherit; |
186 |
| - white-space: nowrap; |
187 |
| - cursor: pointer; |
188 |
| - -webkit-user-select: none; |
189 |
| - -moz-user-select: none; |
190 |
| - -ms-user-select: none; |
191 |
| - user-select: none; |
192 |
| - background-color: transparent; |
193 |
| - border: 0; |
194 |
| - -webkit-appearance: none; |
195 |
| - -moz-appearance: none; |
196 |
| - appearance: none; |
197 |
| -} |
198 |
| -
|
199 | 36 | <a
|
200 |
| - className="c0 c1" |
| 37 | + className="Link" |
| 38 | + data-muted={true} |
201 | 39 | muted={true}
|
202 | 40 | />
|
203 | 41 | `;
|
0 commit comments