Skip to content

Commit 782c0ae

Browse files
authored
Merge pull request #2554 from patternfly/docs/remove-skip-link-animation
docs: remove skip link animation
2 parents f2217cc + a3fa621 commit 782c0ae

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/main.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,19 @@ p:empty {
4242
display: flex;
4343
padding-inline: var(--pf-global--spacer--md, 1rem);
4444
padding-block: var(--pf-global--spacer--xs, 0.25rem);
45-
position: absolute;
46-
transform: translateY(-101%);
47-
transition: transform 0.2s;
45+
position: fixed;
46+
top: -200px;
4847
width: max-content;
4948
/* Header bar is set to z-index: 300 */
5049
z-index: 301;
5150
}
5251

5352
.skip-to-content-link:focus {
54-
transform: translateY(0%);
5553
position: fixed;
5654
top: 0;
5755
}
5856

57+
5958
.sr-only {
6059
position: absolute;
6160
width: 1px;

0 commit comments

Comments
 (0)