Skip to content

Commit

Permalink
686 added transition
Browse files Browse the repository at this point in the history
  • Loading branch information
dhinrichs-scottlogic committed Feb 29, 2024
1 parent 5696459 commit fca79a8
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions frontend/src/components/ChatBox/ChatBox.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,9 @@
outline-offset: 0.1rem;
}

.skip-link {
.chat-box .skip-link {
position: absolute;
left: 0;
clip: auto;
width: 100%;
height: auto;
padding: 0.5rem 0;
Expand All @@ -81,23 +80,32 @@
font-weight: 600;
text-align: center;
text-decoration: none;
opacity: 1;
transition: opacity 0.3s ease-in-out;
clip-path: none;
}

.skip-to-top {
@media (prefers-reduced-motion: reduce) {
.chat-box .skip-link {
transition: none;
}
}

.chat-box .skip-link.skip-to-top {
top: -1.5rem;
}

.skip-to-bottom {
.chat-box .skip-link.skip-to-bottom {
top: 0.125rem;
}

.skip-link:not(:focus, :active) {
.chat-box .skip-link:not(:focus, :active) {
position: absolute;
overflow: hidden;
width: 1px;
height: 1px;
white-space: nowrap;
opacity: 0;
clip-path: inset(50%);
}

Expand Down

0 comments on commit fca79a8

Please sign in to comment.