Skip to content

Commit

Permalink
Generated by TRAVIS-CI e80972a
Browse files Browse the repository at this point in the history
Accordion Example: Correct color contrast (pull #1200)

* Accordion Example: Correct color contrast (Issue #1132)

* Accordion Example: Correct (high) contrast issue (Issue #1132)

* Accordion Example: correct input border contrast (issue #1132)
  • Loading branch information
michael-n-cooper committed Oct 25, 2019
1 parent 7d2fbaf commit 48918c3
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions examples/accordion/css/accordion.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.Accordion {
margin: 0;
padding: 0;
border: 2px solid hsl(0, 0%, 82%);
border: 2px solid hsl(0, 0%, 52%);
border-radius: 7px;
width: 20em;
}
Expand All @@ -12,15 +12,15 @@
}

.Accordion.focus {
border-color: hsl(216, 94%, 73%);
border-color: hsl(216, 94%, 43%);
}

.Accordion.focus h3 {
background-color: hsl(0, 0%, 97%);
}

.Accordion > * + * {
border-top: 1px solid hsl(0, 0%, 82%);
border-top: 1px solid hsl(0, 0%, 52%);
}

.Accordion-trigger {
Expand All @@ -42,6 +42,10 @@
background: hsl(216, 94%, 94%);
}

.Accordion-trigger:focus {
outline: 4px solid transparent;
}

.Accordion *:first-child .Accordion-trigger {
border-radius: 5px 5px 0 0;
}
Expand All @@ -64,11 +68,11 @@ button {
}

.Accordion-trigger:focus .Accordion-title {
border-color: hsl(216, 94%, 73%);
border-color: hsl(216, 94%, 43%);
}

.Accordion-icon {
border: solid hsl(0, 0%, 62%);
border: solid currentColor;
border-width: 0 2px 2px 0;
height: 0.5rem;
pointer-events: none;
Expand All @@ -81,7 +85,7 @@ button {

.Accordion-trigger:focus .Accordion-icon,
.Accordion-trigger:hover .Accordion-icon {
border-color: hsl(216, 94%, 73%);
border-color: hsl(216, 94%, 43%);
}

.Accordion-trigger[aria-expanded="true"] .Accordion-icon {
Expand All @@ -105,7 +109,7 @@ fieldset {
}

input {
border: 1px solid hsl(0, 0%, 62%);
border: 1px solid hsl(0, 0%, 42%);
border-radius: 0.3em;
display: block;
font-size: inherit;
Expand Down

0 comments on commit 48918c3

Please sign in to comment.