-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nav: update to latest redlines (#10008)
* first * add nav style reversion to MDL2 theme package * Change files * update snapshots and API * code review feedback * update * more snapshots * more changes * update snapshots * more fixes * changes * fix tslint error * Fixes
- Loading branch information
1 parent
d317923
commit f0097f8
Showing
16 changed files
with
260 additions
and
99 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
change/@uifabric-fluent-theme-2019-07-31-14-05-43-phkuo-leftNavRedlines.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Nav: update to latest redlines", | ||
"packageName": "@uifabric/fluent-theme", | ||
"email": "[email protected]", | ||
"commit": "7779a3437650dff286de759c3474e6fe8c4294e7", | ||
"date": "2019-07-31T21:05:19.873Z" | ||
} |
8 changes: 8 additions & 0 deletions
8
change/@uifabric-mdl2-theme-2019-07-31-14-05-43-phkuo-leftNavRedlines.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Nav: add backwards compat for update to latest redlines", | ||
"packageName": "@uifabric/mdl2-theme", | ||
"email": "[email protected]", | ||
"commit": "7779a3437650dff286de759c3474e6fe8c4294e7", | ||
"date": "2019-07-31T21:05:31.597Z" | ||
} |
8 changes: 8 additions & 0 deletions
8
change/@uifabric-styling-2019-07-31-14-05-43-phkuo-leftNavRedlines.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "minor", | ||
"comment": "Semantic slots: add bodyBackgroundHovered and bodyBackgroundSelected", | ||
"packageName": "@uifabric/styling", | ||
"email": "[email protected]", | ||
"commit": "7779a3437650dff286de759c3474e6fe8c4294e7", | ||
"date": "2019-07-31T21:05:43.090Z" | ||
} |
8 changes: 8 additions & 0 deletions
8
change/office-ui-fabric-react-2019-07-31-14-05-43-phkuo-leftNavRedlines.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Nav: update to latest redlines", | ||
"packageName": "office-ui-fabric-react", | ||
"email": "[email protected]", | ||
"commit": "7779a3437650dff286de759c3474e6fe8c4294e7", | ||
"date": "2019-07-31T21:05:37.306Z" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { INavStyleProps, INavStyles } from 'office-ui-fabric-react/lib/Nav'; | ||
|
||
export const NavStyles = (props: INavStyleProps): Partial<INavStyles> => { | ||
const { theme, isDisabled, isSelected, isGroup, isLink, navHeight = 44 } = props; | ||
const { semanticColors } = theme; | ||
|
||
return { | ||
link: [ | ||
{ | ||
height: navHeight, | ||
lineHeight: `${navHeight}px` | ||
}, | ||
!isDisabled && { | ||
selectors: { | ||
'.${classNames.compositeLink}:hover &': { | ||
backgroundColor: semanticColors.bodyBackgroundHovered | ||
} | ||
} | ||
}, | ||
isSelected && { | ||
backgroundColor: semanticColors.bodyBackgroundChecked | ||
} | ||
], | ||
chevronButton: [ | ||
{ | ||
lineHeight: `${navHeight}px`, | ||
selectors: { | ||
'&:hover': { | ||
backgroundColor: semanticColors.bodyBackgroundHovered | ||
}, | ||
'.${classNames.compositeLink}:hover &': { | ||
backgroundColor: semanticColors.bodyBackgroundHovered | ||
} | ||
} | ||
}, | ||
isGroup && { | ||
height: navHeight | ||
}, | ||
isLink && { | ||
height: navHeight - 2 | ||
} | ||
], | ||
chevronIcon: { | ||
height: navHeight, | ||
lineHeight: `${navHeight}px` | ||
} | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { INavStyleProps, INavStyles } from 'office-ui-fabric-react/lib/Nav'; | ||
|
||
export const NavStyles = (props: INavStyleProps): Partial<INavStyles> => { | ||
const { theme, isDisabled, isSelected, isGroup, isLink, navHeight = 36 } = props; | ||
const { palette } = theme; | ||
|
||
return { | ||
link: [ | ||
{ | ||
height: navHeight, | ||
lineHeight: `${navHeight}px` | ||
}, | ||
!isDisabled && { | ||
selectors: { | ||
'.ms-Nav-compositeLink:hover &': { | ||
backgroundColor: palette.neutralLighterAlt | ||
} | ||
} | ||
}, | ||
isSelected && { | ||
backgroundColor: palette.neutralLighter | ||
} | ||
], | ||
chevronButton: [ | ||
{ | ||
lineHeight: `${navHeight}px`, | ||
selectors: { | ||
'&:hover': { | ||
backgroundColor: palette.neutralLighterAlt | ||
}, | ||
'$compositeLink:hover &': { | ||
backgroundColor: palette.neutralLighterAlt | ||
} | ||
} | ||
}, | ||
isGroup && { | ||
height: navHeight | ||
}, | ||
isLink && { | ||
height: navHeight - 2 | ||
} | ||
], | ||
chevronIcon: { | ||
height: navHeight, | ||
lineHeight: `${navHeight}px` | ||
} | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.