Skip to content

Commit

Permalink
Improve condensed EuiTabs focus states (#3299)
Browse files Browse the repository at this point in the history
* Improving condensed tabs focus states

* Adding changelog

* Changelog
  • Loading branch information
elizabetdev authored Apr 14, 2020
1 parent 5e2c11b commit 5fed879
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- Converted `NavDrawer`, `NavDrawerGroup`, and `NavDrawerFlyout` to TypeScript ([#3268](https://github.com/elastic/eui/pull/3268))
- Converted `EuiDatePicker`, `EuiDatePickerRange`, `EuiSuperDatePicker`, and `EuiSuperUpdateButton` to TypeScript ([#2891](https://github.com/elastic/eui/pull/2891))
- Improved condensed `EuiTabs` focus states ([#3299](https://github.com/elastic/eui/pull/3299))

## [`22.5.0`](https://github.com/elastic/eui/tree/v22.5.0)

Expand Down
10 changes: 7 additions & 3 deletions src/components/tabs/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,22 @@

.euiTabs--condensed & {
font-weight: $euiFontWeightSemiBold;
padding: $euiSizeS 0;
padding: $euiSizeS $euiSizeXS;

&:focus {
background-color: transparent;
background-color: $euiFocusBackgroundColor;

&::before {
display: none;
}
}

&-isSelected {
text-decoration: none;
}

& + .euiTab {
margin-left: $euiSizeL;
margin-left: $euiSize;
}
}

Expand Down

0 comments on commit 5fed879

Please sign in to comment.