Skip to content

Commit

Permalink
Add focus outline color to variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Apr 6, 2023
1 parent 05bc899 commit 667fd04
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 13 deletions.
34 changes: 25 additions & 9 deletions src/SearchBlock/less/datahub.less
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
}

/**
* Datahub search
*/
* Datahub search
*/

.view-datahub-item {
.item.tabs-title {
Expand Down Expand Up @@ -84,11 +84,26 @@
.datahub-view {
.searchapp-datahub {
/* Search box */
.sui-search-box .search-input .terms-box {
border-color: @darkCerulean;
.sui-search-box {
.search-input .terms-box input {
border-color: @darkCerulean;

&:focus {
border-bottom: 3px solid @blue-3;
outline: none !important;

&:focus + .terms-box-left {
border-bottom: 3px solid @blue-3;
}
}
}

.terms-box-left {
border-color: @darkCerulean;

.terms-box-left .search-icon svg {
fill: @darkCerulean !important;
.search-icon svg {
fill: @darkCerulean !important;
}
}

.input-controls .clear-button {
Expand All @@ -110,7 +125,8 @@
a.item {
color: @blue-grey-5;

&.active {
&.active,
&:active {
border-color: @darkCerulean;
color: @darkCerulean;
}
Expand Down Expand Up @@ -142,8 +158,8 @@
}

/**
* Datahub item view
*/
* Datahub item view
*/
.view-datahub-item {
color: @blue-grey-5;

Expand Down
2 changes: 1 addition & 1 deletion src/SearchBlock/less/dropdown-filterlist.less
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@

.sui-multi-checkbox-facet__checkbox:focus + .checkmark,
.sui-multi-checkbox-facet__checkbox:focus + .radio-checkmark {
outline: 0.2rem solid #0083e0 !important;
outline: 0.2rem solid @blue-3 !important;
}

.checkmark:after,
Expand Down
4 changes: 2 additions & 2 deletions src/SearchBlock/less/searchbox.less
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
font-size: 40px;

&:focus {
border-bottom: 3px solid #0083e0;
border-bottom: 3px solid @blue-3;
outline: none !important;

&:focus + .terms-box-left {
border-bottom: 3px solid #0083e0;
border-bottom: 3px solid @blue-3;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/SearchBlock/less/searchview.less
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ body.searchlib-page {
top: -1px;

.ui.toggle.checkbox input:focus + label:before {
outline: 0.2rem solid #0083e0 !important;
outline: 0.2rem solid @blue-3 !important;
}

label {
Expand Down
1 change: 1 addition & 0 deletions src/SearchBlock/less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Colors
@darkCerulean: #004b7f;
@deepBlue: #3d5265;
@blue-grey-5: #3d5265;
@blue-3: #0083e0;
@blue-4: #006bb8;
@darkMidnightBlue: #0a3d61;

Expand Down

0 comments on commit 667fd04

Please sign in to comment.