Skip to content

Commit

Permalink
Add outlines, remove unused transition/border-radius
Browse files Browse the repository at this point in the history
  • Loading branch information
sashachabin committed Dec 21, 2023
1 parent 06241de commit d03e356
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 18 deletions.
3 changes: 1 addition & 2 deletions components/ArrowNavLink/ArrowNavLink.module.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
.ArrowNavLink {
box-shadow: none;
margin: 0 0 76px;
border-radius: 2rem;
font-weight: 400;
font-size: clamp(14px, 1.8vw, 18px);
transition: 0.3s;
transition: 0.3s ease text-decoration-color;
color: var(--color);
}

Expand Down
1 change: 1 addition & 0 deletions components/Button/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
cursor: pointer;
transition: all 0.15s ease;
text-decoration: none;
outline-offset: 3px;
}

.Button_type-primary {
Expand Down
6 changes: 6 additions & 0 deletions components/Ecosystem/Ecosystem.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
--ecosystem-color: var(--color-bg-light);
}

.Ecosystem a:focus-visible,
.Ecosystem button:focus-visible {
outline: 2px solid black;
outline-offset: 4px;
}

@media print {
.Ecosystem {
display: none;
Expand Down
9 changes: 1 addition & 8 deletions components/ManualPreview/ManualPreview.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
font-weight: 500;
font-size: clamp(18px, 5vw, 21px);
background: var(--manual-bg-back);
}

.manual:focus-visible {
outline-width: 0;
outline-offset: 3px;
}

.manualEmoji {
Expand Down Expand Up @@ -71,10 +68,6 @@
transform: matrix(1, -0.125, 0, 1, 0, 0) scaleX(0.95);
}

.manual:focus-visible {
outline: 2px solid black;
}

.manualTitle {
position: relative;
font-weight: 400;
Expand Down
2 changes: 1 addition & 1 deletion components/ManualTitle/ManualTitle.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
.ManualTitle__mainpage {
position: relative;
align-self: flex-start;
border-radius: 16px;
padding-top: 4px;
color: var(--color);
font-size: 14px;
Expand All @@ -33,6 +32,7 @@
top: 4px;
right: -12px;
opacity: 0.6;
outline: none;
}

.ManualTitle__caption {
Expand Down
2 changes: 2 additions & 0 deletions components/ProjectLinks/ProjectLinks.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
.ProjectLinks__github {
display: none;
color: black;
outline-offset: 3px;
border-radius: 50%;
}

.ProjectLinks__github svg {
Expand Down
1 change: 1 addition & 0 deletions components/TableOfContents/TableOfContents.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ html:has(.open) {
font-size: 16px;
border-radius: 8px;
transition: 0.15s ease;
outline-offset: -1px;
}

.tableOfContentsLink:not(:only-child) {
Expand Down
8 changes: 1 addition & 7 deletions components/Toolbar/Toolbar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,9 @@
border-radius: 50%;
background: transparent;
color: var(--color);
outline: none;
outline-width: 0;
font-size: 0;
cursor: pointer;
transition: 0.15s ease;
transition: 0.15s ease color, 0.15s ease background-color;
}

.Toolbar__item:hover {
Expand All @@ -58,10 +56,6 @@
color: white;
}

.Toolbar__item:focus-visible svg {
box-shadow: inset 0 0 0 2px black;
}

.hidden {
visibility: hidden;
}
Expand Down

1 comment on commit d03e356

@ekbdev
Copy link

@ekbdev ekbdev commented on d03e356 Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for guides ready!

✅ Preview
https://guides-hr9u71qo1-ekbdev.vercel.app
https://eguides-feature-a11y.vercel.app

Built with commit d03e356.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.