Skip to content

Commit

Permalink
Fix theme slots for DetailsList header colors (#4658)
Browse files Browse the repository at this point in the history
* Fix theme slots for DetailsList header colors

* Update change output
  • Loading branch information
ThomasMichon authored Apr 24, 2018
1 parent 6648a74 commit 802a2c0
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@uifabric/styling",
"comment": "Add theme slots for DetailsList header colors",
"type": "minor"
}
],
"packageName": "@uifabric/styling",
"email": "tmichon@microsoft.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "office-ui-fabric-react",
"comment": "Fix theme slots for DetailsList header colors",
"type": "minor"
}
],
"packageName": "office-ui-fabric-react",
"email": "tmichon@microsoft.com"
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ $menuHeaderColor: "[theme:menuHeader, default: #0078d4]";
/* Lists */
$listBackgroundColor: "[theme:listBackground, default: #ffffff]";
$listTextColor: "[theme:listText, default: #333333]";
$listItemHeaderHoveredColor: "[theme:listItemHeaderHovered, default: #f4f4f4]";
$listItemHeaderActivatedColor: "[theme:listItemActivatedHovered, default: #eaeaea]";
$listHeaderBackgroundHoveredColor: "[theme:listHeaderBackgroundHovered, default: #f4f4f4]";
$listHeaderBackgroundPressedColor: "[theme:listHeaderBackgroundPressed, default: #eaeaea]";
$listItemBackgroundHoveredColor: "[theme:listItemBackgroundHovered, default: #f8f8f8]";
$listItemBackgroundCheckedColor: "[theme:listItemBackgroundChecked, default: #eaeaea]";
$listItemBackgroundCheckedHoveredColor: "[theme:listItemBackgroundCheckedHovered, default: #d0d0d0]";
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ $isPaddedMargin: 24px;

&:hover {
color: $bodyTextColor;
background: $listItemHeaderHoveredColor;
background: $listHeaderBackgroundHoveredColor;
}

&:active {
background: $listItemHeaderActivatedColor;
background: $listHeaderBackgroundPressedColor;
}
}

Expand Down
12 changes: 11 additions & 1 deletion packages/styling/src/interfaces/ISemanticColors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,16 @@ export interface ISemanticColors {
*/
listItemBackgroundCheckedHovered: string;

/**
* The background color for a hovered list header.
*/
listHeaderBackgroundHovered: string;

/**
* The background color for a pressed list header.
*/
listHeaderBackgroundPressed: string;

/**
* The color of a link.
*/
Expand All @@ -286,4 +296,4 @@ export interface ISemanticColors {

/** DEPRECATED use listText instead */
listTextColor: string;
}
}
3 changes: 3 additions & 0 deletions packages/styling/src/styles/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ function _makeSemanticColorsFromPalette(p: IPalette, isInverted: boolean, depCom
listItemBackgroundChecked: p.neutralLight,
listItemBackgroundCheckedHovered: p.neutralQuaternaryAlt,

listHeaderBackgroundHovered: p.neutralLighter,
listHeaderBackgroundPressed: p.neutralLight,

link: p.themePrimary,
linkHovered: p.themeDarker,

Expand Down

0 comments on commit 802a2c0

Please sign in to comment.