Skip to content

Commit

Permalink
Increase default font size of tabs in KUI theme (#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
cchaos authored Oct 18, 2018
1 parent 6a328a8 commit c05eb7c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## [`master`](https://github.com/elastic/eui/tree/master)

No public interface changes since `4.5.2`.
- Increased default font size of tabs in K6 theme ([#1244](https://github.com/elastic/eui/pull/1244))

## [`4.5.2`](https://github.com/elastic/eui/tree/v4.5.2)

Expand Down
4 changes: 1 addition & 3 deletions src/components/tabs/_index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
$tabBackgroundColor: #FFF;
$tabHoverBackgroundColor: #F2F2F2;

@import "variables";
@import "tabs";
5 changes: 3 additions & 2 deletions src/components/tabs/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

&.euiTabs--small {
.euiTab {
@include euiFontSizeS;
@include fontSize($euiTabFontSizeS);
padding: $euiSizeS $euiSizeS;
}
}
Expand All @@ -27,7 +27,8 @@
}

.euiTab {
@include euiFontSize;
@include fontSize($euiTabFontSize);
line-height: $euiLineHeight;

position: relative;
cursor: pointer;
Expand Down
2 changes: 2 additions & 0 deletions src/components/tabs/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$euiTabFontSize: $euiFontSize !default;
$euiTabFontSizeS: $euiFontSizeS !default;
4 changes: 4 additions & 0 deletions src/themes/k6/k6_globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ $euiFontSizeXXL: $euiFontSize * nth($euiTextScale, 1); // 32px

// Make titles bold.
$euiFontWeightLight: 600;

// Ensure non-small tabs actually have a larger font size
$euiTabFontSize: $euiFontSizeM;
$euiTabFontSizeS: $euiFontSizeS;

0 comments on commit c05eb7c

Please sign in to comment.