-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Remove the CSS modules feature flag from the Link component (#…
- Loading branch information
Showing
15 changed files
with
574 additions
and
200 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Binary file modified
BIN
+44 Bytes
(100%)
...Timeline.test.ts-snapshots/Timeline-With-Inline-Links-dark-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+120 Bytes
(100%)
...nts/Timeline.test.ts-snapshots/Timeline-With-Inline-Links-dark-dimmed-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+54 Bytes
(100%)
...eline.test.ts-snapshots/Timeline-With-Inline-Links-dark-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+44 Bytes
(100%)
...components/Timeline.test.ts-snapshots/Timeline-With-Inline-Links-dark-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+44 Bytes
(100%)
...Timeline.test.ts-snapshots/Timeline-With-Inline-Links-dark-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+94 Bytes
(100%)
...imeline.test.ts-snapshots/Timeline-With-Inline-Links-light-colorblind-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+52 Bytes
(100%)
...line.test.ts-snapshots/Timeline-With-Inline-Links-light-high-contrast-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+94 Bytes
(100%)
...omponents/Timeline.test.ts-snapshots/Timeline-With-Inline-Links-light-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+94 Bytes
(100%)
...imeline.test.ts-snapshots/Timeline-With-Inline-Links-light-tritanopia-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
180 changes: 171 additions & 9 deletions
180
packages/react/src/Link/__tests__/__snapshots__/Link.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,203 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Link applies button styles when rendering a button element 1`] = ` | ||
.c1 { | ||
color: var(--fgColor-accent,var(--color-accent-fg,#0969da)); | ||
-webkit-text-decoration: none; | ||
text-decoration: none; | ||
} | ||
[data-a11y-link-underlines='true'] .c0[data-inline='true'] { | ||
-webkit-text-decoration: underline; | ||
text-decoration: underline; | ||
} | ||
.c1:hover { | ||
-webkit-text-decoration: underline; | ||
text-decoration: underline; | ||
} | ||
.c1:is(button) { | ||
display: inline-block; | ||
padding: 0; | ||
font-size: inherit; | ||
white-space: nowrap; | ||
cursor: pointer; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
background-color: transparent; | ||
border: 0; | ||
-webkit-appearance: none; | ||
-moz-appearance: none; | ||
appearance: none; | ||
} | ||
<button | ||
className="Link" | ||
className="c0 c1" | ||
/> | ||
`; | ||
|
||
exports[`Link passes href down to link element 1`] = ` | ||
.c1 { | ||
color: var(--fgColor-accent,var(--color-accent-fg,#0969da)); | ||
-webkit-text-decoration: none; | ||
text-decoration: none; | ||
} | ||
[data-a11y-link-underlines='true'] .c0[data-inline='true'] { | ||
-webkit-text-decoration: underline; | ||
text-decoration: underline; | ||
} | ||
.c1:hover { | ||
-webkit-text-decoration: underline; | ||
text-decoration: underline; | ||
} | ||
.c1:is(button) { | ||
display: inline-block; | ||
padding: 0; | ||
font-size: inherit; | ||
white-space: nowrap; | ||
cursor: pointer; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
background-color: transparent; | ||
border: 0; | ||
-webkit-appearance: none; | ||
-moz-appearance: none; | ||
appearance: none; | ||
} | ||
<a | ||
className="Link" | ||
className="c0 c1" | ||
href="https://github.com" | ||
/> | ||
`; | ||
|
||
exports[`Link respects hoverColor prop 1`] = ` | ||
.c1 { | ||
color: var(--fgColor-accent,var(--color-accent-fg,#0969da)); | ||
-webkit-text-decoration: none; | ||
text-decoration: none; | ||
} | ||
[data-a11y-link-underlines='true'] .c0[data-inline='true'] { | ||
-webkit-text-decoration: underline; | ||
text-decoration: underline; | ||
} | ||
.c1:hover { | ||
-webkit-text-decoration: underline; | ||
text-decoration: underline; | ||
color: var(--fgColor-accent,var(--color-accent-fg,#0969da)); | ||
} | ||
.c1:is(button) { | ||
display: inline-block; | ||
padding: 0; | ||
font-size: inherit; | ||
white-space: nowrap; | ||
cursor: pointer; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
background-color: transparent; | ||
border: 0; | ||
-webkit-appearance: none; | ||
-moz-appearance: none; | ||
appearance: none; | ||
} | ||
<a | ||
className="Link" | ||
hoverColor="accent.fg" | ||
className="c0 c1" | ||
/> | ||
`; | ||
|
||
exports[`Link respects the "sx" prop when "muted" prop is also passed 1`] = ` | ||
.c0 { | ||
.c1 { | ||
color: var(--fgColor-muted,var(--color-fg-muted,#656d76)); | ||
-webkit-text-decoration: none; | ||
text-decoration: none; | ||
color: var(--fgColor-onEmphasis,var(--color-fg-on-emphasis,#ffffff)); | ||
} | ||
[data-a11y-link-underlines='true'] .c0[data-inline='true'] { | ||
-webkit-text-decoration: underline; | ||
text-decoration: underline; | ||
} | ||
.c1:hover { | ||
-webkit-text-decoration: none; | ||
text-decoration: none; | ||
color: var(--fgColor-accent,var(--color-accent-fg,#0969da)); | ||
} | ||
.c1:is(button) { | ||
display: inline-block; | ||
padding: 0; | ||
font-size: inherit; | ||
white-space: nowrap; | ||
cursor: pointer; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
background-color: transparent; | ||
border: 0; | ||
-webkit-appearance: none; | ||
-moz-appearance: none; | ||
appearance: none; | ||
} | ||
<a | ||
className="c0 Link" | ||
data-muted={true} | ||
className="c0 c1" | ||
muted={true} | ||
/> | ||
`; | ||
|
||
exports[`Link respects the "muted" prop 1`] = ` | ||
.c1 { | ||
color: var(--fgColor-muted,var(--color-fg-muted,#656d76)); | ||
-webkit-text-decoration: none; | ||
text-decoration: none; | ||
} | ||
[data-a11y-link-underlines='true'] .c0[data-inline='true'] { | ||
-webkit-text-decoration: underline; | ||
text-decoration: underline; | ||
} | ||
.c1:hover { | ||
-webkit-text-decoration: none; | ||
text-decoration: none; | ||
color: var(--fgColor-accent,var(--color-accent-fg,#0969da)); | ||
} | ||
.c1:is(button) { | ||
display: inline-block; | ||
padding: 0; | ||
font-size: inherit; | ||
white-space: nowrap; | ||
cursor: pointer; | ||
-webkit-user-select: none; | ||
-moz-user-select: none; | ||
-ms-user-select: none; | ||
user-select: none; | ||
background-color: transparent; | ||
border: 0; | ||
-webkit-appearance: none; | ||
-moz-appearance: none; | ||
appearance: none; | ||
} | ||
<a | ||
className="Link" | ||
data-muted={true} | ||
className="c0 c1" | ||
muted={true} | ||
/> | ||
`; |
Oops, something went wrong.