Skip to content

Commit

Permalink
Merge pull request #423 from epimorphics/issue/412-a11y
Browse files Browse the repository at this point in the history
Issue/412 a11y
  • Loading branch information
bogdanadrianmarc authored Aug 15, 2024
2 parents 47c3946 + 6525d5a commit 1ac53a2
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 23 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 1.7.5 - 2024-08

- (Bogdan) Increased contrast for compare location dropdowns [GH-412](https://github.com/epimorphics/ukhpi/issues/412)
- (Bogdan) Increased contrast for search location results, as well as when they
are being focused [GH-412](https://github.com/epimorphics/ukhpi/issues/412)
- (Bogdan) CSS Refactoring
- (Bogdan) Fixed a bug where CSS was applied to the wrong element, causing search
location results to be displayed incorrectly
- (Bogdan) Increased focusable area for close button on modal and hide graph button
Expand Down
13 changes: 9 additions & 4 deletions app/assets/stylesheets/_element-rails.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ table.el-month-table {
}
}

.el-select-dropdown__item.selected {
background-color: $dark-blue;
color: white;
}
.el-select-dropdown__item {
&.selected {
background-color: $dark-blue;
color: white;
}
&.hover {
background-color: #e6e6e6;
}
}
36 changes: 26 additions & 10 deletions app/assets/stylesheets/_ukhpi-location-select.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
.o-select-location {
text-align: left;

.el-dialog__body {
padding: 5px 20px;
color: #000000;
}
.el-dialog {
&__body {
padding: 5px 20px;
color: #000000;
}

&__close {
color: #000000;
padding: 4px;
}

.el-dialog__close {
color: #000000;
padding: 4px;
&__footer {
.el-button--default {
color: #000000;
}
}
}

.el-input__inner {
Expand All @@ -19,9 +27,17 @@
color: #a4742b;
}

.el-dialog__footer {
.el-button {
color: #000000;
.o-search-location__result {
&:focus, &:hover {
background-color: #e6e6e6;
}

.el-button--text {
color: #0050a2;

&:focus, &:hover {
color: #007dff;
}
}
}
}
20 changes: 11 additions & 9 deletions app/assets/stylesheets/_ukhpi-maps.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@
display: flex;
flex-direction: column;

.el-radio-button__inner {
width: 100%;
border: 0;
border-radius: 0;
color: #000000;
}

.el-radio-button__orig-radio:checked+.el-radio-button__inner {
background-color: #2c659f;
.el-radio-button {
&__inner {
width: 100%;
border: 0;
border-radius: 0;
color: #000000;
}

&.is-active {
background-color: #409eff;
}
}
}

Expand Down

0 comments on commit 1ac53a2

Please sign in to comment.