Skip to content

Commit 519d16a

Browse files
authored
feat: vertically center pfe-tab content (#1737)
1 parent 3d3c4f1 commit 519d16a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CHANGELOG-1.x.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- [5f88c39](https://github.com/patternfly/patternfly-elements/commit/5f88c3963f8a6c13a9aeba6e9f664678453d46ce) fix: Jump links parseInt for IE11
77
- [43a904e](https://github.com/patternfly/patternfly-elements/commit/43a904e2ce4f2ef7182f803bf35ade463e7c2f1d) fix: container sass placeholder using incorrect variable for spacing (#1522)
88
- [](https://github.com/patternfly/patternfly-elements/commit/) fix: accordion rendering slotted content in the header
9+
- [](https://github.com/patternfly/patternfly-elements/commit/) feat: vertically center pfe-tab content
910

1011
# 1.10.1 (2021-07-12)
1112

elements/pfe-tabs/src/pfe-tab.scss

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ $LOCAL-VARIABLES: map-deep-merge($LOCAL-VARIABLES, $backwards-compatibility);
5252
@include pfe-c-typography($type: text, $sizing: md, $base: true, $region: tab, $light-dom-heading: true);
5353

5454
#tab {
55-
display: inline-block;
55+
display: inline-flex;
56+
align-items: center;
57+
height: 100%;
5658

5759
* {
5860
font-size: inherit;
@@ -86,10 +88,6 @@ $LOCAL-VARIABLES: map-deep-merge($LOCAL-VARIABLES, $backwards-compatibility);
8688
/// VERTICAL TAB ORIENTATION
8789
/// ===========================================================================
8890

89-
:host([variant="earth"][vertical]) #tab {
90-
display: inline-block;
91-
}
92-
9391
@media screen and (min-width: pfe-breakpoint(md)) {
9492
:host([vertical]) {
9593
border-bottom-color: transparent;

0 commit comments

Comments
 (0)