Skip to content

Commit

Permalink
fix: a11y colors
Browse files Browse the repository at this point in the history
  • Loading branch information
fkakatie committed Aug 1, 2024
1 parent 1734740 commit 1da2479
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 25 deletions.
4 changes: 2 additions & 2 deletions blocks/accordion/accordion.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.accordion details {
border: 1px solid var(--dark-color);
border: 1px solid #dadada;
}

/* stylelint-disable-next-line no-descending-specificity */
Expand Down Expand Up @@ -56,6 +56,6 @@
}

.accordion details[open] .accordion-item-body {
border-top: 1px solid var(--dark-color);
border-top: 1px solid #dadada;
background-color: var(--background-color);
}
2 changes: 1 addition & 1 deletion blocks/cards/cards.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}

.cards > ul > li {
border: 1px solid var(--light-color);
border: 1px solid #dadada;
background-color: var(--background-color);
}

Expand Down
2 changes: 1 addition & 1 deletion blocks/carousel/carousel.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
margin: 0;
padding: 0;
border-radius: 50%;
background-color: rgba(19 19 19 / 25%);
background-color: #dadada;
transition: background-color 0.2s;
}

Expand Down
8 changes: 0 additions & 8 deletions blocks/footer/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ footer .footer p {
margin: 0;
}

footer .footer a:any-link {
color: var(--link-hover-color);
}

footer .footer a:hover {
color: var(--link-color);
}

@media (width >= 900px) {
footer .footer > div {
padding: 40px 32px 24px;
Expand Down
4 changes: 2 additions & 2 deletions blocks/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ header .breadcrumbs ol {
/* stylelint-disable-next-line no-descending-specificity */
header .breadcrumbs ol li {
padding: 0;
opacity: 0.6;
color: var(--dark-color);
}

header .breadcrumbs ol li:not(:last-child)::after {
Expand All @@ -310,7 +310,7 @@ header .breadcrumbs ol li:not(:last-child)::after {

/* stylelint-disable-next-line no-descending-specificity */
header .breadcrumbs ol li[aria-current] {
opacity: 1;
color: var(--text-color);
}

@media (width >= 900px) {
Expand Down
2 changes: 1 addition & 1 deletion blocks/search/search.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}

.search ul.search-results > li {
border: 1px solid var(--light-color);
border: 1px solid #dadada;
}

.search ul.search-results > li > a {
Expand Down
10 changes: 5 additions & 5 deletions blocks/table/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
}

.table table thead tr {
border-top: 2px solid;
border-bottom: 2px solid;
border-top: 2px solid #dadada;
border-bottom: 2px solid #dadada;
}

.table table tbody tr {
border-bottom: 1px solid;
border-bottom: 1px solid #dadada;
}

.table table th {
Expand All @@ -52,7 +52,7 @@

/* no header variant */
.table.no-header table tbody tr {
border-top: 1px solid;
border-top: 1px solid #dadada;
}

/* striped variant */
Expand All @@ -63,5 +63,5 @@
/* bordered variant */
.table.bordered table th,
.table.bordered table td {
border: 1px solid;
border: 1px solid #dadada;
}
4 changes: 2 additions & 2 deletions blocks/tabs/tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
.tabs .tabs-list button {
flex: 0 0 max-content;
margin: 0;
border: 1px solid var(--dark-color);
border: 1px solid #dadada;
border-radius: 0;
padding: 0.5em;
background-color: var(--light-color);
Expand Down Expand Up @@ -49,7 +49,7 @@
.tabs .tabs-panel {
margin-top: -1px;
padding: 24px;
border: 1px solid var(--dark-color);
border: 1px solid #dadada;
overflow: auto;
}

Expand Down
3 changes: 1 addition & 2 deletions blocks/video/video.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@
}

.video .video-placeholder-play button {
box-sizing: border-box;
position: relative;
display: block;
width: 44px;
height: 44px;
border-radius: 50%;
border: 2px solid;
outline: 2px solid;
padding: 0;
}

Expand Down
2 changes: 1 addition & 1 deletion styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
:root {
/* colors */
--background-color: white;
--light-color: #f3f3f3;
--light-color: #f8f8f8;
--dark-color: #505050;
--text-color: #131313;
--link-color: #3b63fb;
Expand Down

0 comments on commit 1da2479

Please sign in to comment.