Skip to content

Commit

Permalink
Pivot: Fix HC styling for pivot tabs to show text when selected (#15166)
Browse files Browse the repository at this point in the history
* Pivot: Fix HC styling for pivot tabs to show text when selected

* Change files

* set height to 0

* Update Pivot.scss in react-tabs package

* Change files

* update snapshots

* Update change/@fluentui-react-tabs-2020-09-22-11-36-27-pivot-hc-styling.json

Co-authored-by: Xu Gao <xugao0131@hotmail.com>

* update Pivot.styles.ts file in react-tabs

* update snapshots

Co-authored-by: Xu Gao <xugao0131@hotmail.com>
  • Loading branch information
tomi-msft and xugao authored Sep 23, 2020
1 parent d792de0 commit 7b57bf7
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "Fix HC styling for pivot tabs to show text when selected",
"packageName": "@fluentui/react-tabs",
"email": "ololubek@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-09-22T18:36:27.092Z"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "Pivot: Fix HC styling for pivot tabs to show text when selected",
"packageName": "office-ui-fabric-react",
"email": "ololubek@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-09-22T01:00:21.290Z"
}
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export const getStyles = (props: IPivotStyleProps): IPivotStyles => {
right: 0,
bottom: 0,
content: '""',
height: 'auto',
height: 0,
},
':hover': {
backgroundColor: semanticColors.primaryButtonBackgroundHovered,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,7 @@ exports[`Pivot renders large tabbed Pivot correctly 1`] = `
background-color: transparent;
bottom: 0px;
content: "";
height: auto;
height: 0px;
left: 0px;
position: absolute;
right: 0px;
Expand Down Expand Up @@ -2613,7 +2613,7 @@ exports[`Pivot renders tabbed Pivot correctly 1`] = `
background-color: transparent;
bottom: 0px;
content: "";
height: auto;
height: 0px;
left: 0px;
position: absolute;
right: 0px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ exports[`Component Examples renders Pivot.OnChange.Example.tsx correctly 1`] = `
background-color: transparent;
bottom: 0px;
content: "";
height: auto;
height: 0px;
left: 0px;
position: absolute;
right: 0px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ exports[`Component Examples renders Pivot.Remove.Example.tsx correctly 1`] = `
background-color: transparent;
bottom: 0px;
content: "";
height: auto;
height: 0px;
left: 0px;
position: absolute;
right: 0px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ exports[`Component Examples renders Pivot.Tabs.Example.tsx correctly 1`] = `
background-color: transparent;
bottom: 0px;
content: "";
height: auto;
height: 0px;
left: 0px;
position: absolute;
right: 0px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ exports[`Component Examples renders Pivot.TabsLarge.Example.tsx correctly 1`] =
background-color: transparent;
bottom: 0px;
content: "";
height: auto;
height: 0px;
left: 0px;
position: absolute;
right: 0px;
Expand Down
2 changes: 1 addition & 1 deletion packages/react-tabs/src/components/Pivot/Pivot.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const getLinkStyles = (
right: 0,
bottom: 0,
content: '""',
height: 'auto',
height: 0,
},
':hover': {
backgroundColor: semanticColors.primaryButtonBackgroundHovered,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1928,7 +1928,7 @@ exports[`Pivot renders large tabbed Pivot correctly 1`] = `
background-color: transparent;
bottom: 0px;
content: "";
height: auto;
height: 0px;
left: 0px;
position: absolute;
right: 0px;
Expand Down Expand Up @@ -2134,7 +2134,7 @@ exports[`Pivot renders large tabbed Pivot correctly 1`] = `
background-color: transparent;
bottom: 0px;
content: "";
height: auto;
height: 0px;
left: 0px;
position: absolute;
right: 0px;
Expand Down Expand Up @@ -2775,7 +2775,7 @@ exports[`Pivot renders tabbed Pivot correctly 1`] = `
background-color: transparent;
bottom: 0px;
content: "";
height: auto;
height: 0px;
left: 0px;
position: absolute;
right: 0px;
Expand Down Expand Up @@ -2981,7 +2981,7 @@ exports[`Pivot renders tabbed Pivot correctly 1`] = `
background-color: transparent;
bottom: 0px;
content: "";
height: auto;
height: 0px;
left: 0px;
position: absolute;
right: 0px;
Expand Down
2 changes: 1 addition & 1 deletion packages/react-tabs/src/next/Pivot.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
right: 0;
bottom: 0;
content: '';
height: auto;
height: 0;
}

&:hover {
Expand Down

0 comments on commit 7b57bf7

Please sign in to comment.