Skip to content

Commit 0f36062

Browse files
leddie24phkuo
authored andcommitted
DetailsList: Move background from .cell to .root in DetailsHeader (#2548)
* Move background property from .cell to .root to fix background not expanding whole width of detailslist * Add change file * Remove duplicate property
1 parent a3520cd commit 0f36062

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "office-ui-fabric-react",
5+
"comment": "DetailsList: Move background color from .cell to .root for DetailsHeader",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "office-ui-fabric-react",
10+
"email": "[email protected]"
11+
}

packages/office-ui-fabric-react/src/components/DetailsList/DetailsHeader.scss

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ $isPaddedMargin: 24px;
1111

1212
.root {
1313
display: inline-block;
14+
background: $headerBackgroundColor;
1415
position: relative;
1516
min-width: 100%;
1617
vertical-align: top;
@@ -35,7 +36,6 @@ $isPaddedMargin: 24px;
3536

3637
.cell {
3738
@include ms-font-s;
38-
background: $headerBackgroundColor;
3939
color: $headerForegroundColor;
4040
@include focus-border();
4141
position: relative;
@@ -45,7 +45,6 @@ $isPaddedMargin: 24px;
4545
border: none;
4646
line-height: inherit;
4747
margin: 0;
48-
@include ms-text-align(left);
4948
height: $rowHeight;
5049
vertical-align: top;
5150
white-space: nowrap;

0 commit comments

Comments
 (0)