-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TeachingBubble styles in Azure theme (#14335)
* High contrast light + dark themes * Change files * High contrast clean up * DetailsList border fix * Merge branch 'master' of https://github.com/microsoft/fluentui into jackieg/high-contrast-themes * Pivots bug fix + high contrast values * Typo fix * Teaching bubble azure-theme styling * Colors clean up * button line height adjustment per Waseem * Updated font sizes to references Co-authored-by: Jackie <jagaheri@microsoft.com>
- Loading branch information
1 parent
154e5a7
commit 767e316
Showing
12 changed files
with
198 additions
and
18 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
change/@uifabric-azure-themes-2020-07-24-01-28-19-jackieg-high-contrast-themes.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": "High contrast light + dark themes", | ||
"packageName": "@uifabric/azure-themes", | ||
"email": "jagaheri@microsoft.com", | ||
"dependentChangeType": "patch", | ||
"date": "2020-07-24T08:28:19.092Z" | ||
} |
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
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
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
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
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
43 changes: 43 additions & 0 deletions
43
packages/azure-themes/src/stories/components/TeachingBubble.tsx
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,43 @@ | ||
import * as React from 'react'; | ||
import { DefaultButton, IButtonProps } from 'office-ui-fabric-react/lib/Button'; | ||
import { TeachingBubble } from 'office-ui-fabric-react/lib/TeachingBubble'; | ||
import { useBoolean } from '@uifabric/react-hooks'; | ||
|
||
const examplePrimaryButtonProps: IButtonProps = { | ||
children: 'Try it out', | ||
}; | ||
|
||
export const TeachingBubbleBasicExample: React.FunctionComponent = () => { | ||
const [teachingBubbleVisible, { toggle: toggleTeachingBubbleVisible }] = useBoolean(false); | ||
const exampleSecondaryButtonProps: IButtonProps = React.useMemo( | ||
() => ({ | ||
children: 'Maybe later', | ||
onClick: toggleTeachingBubbleVisible, | ||
}), | ||
[toggleTeachingBubbleVisible], | ||
); | ||
|
||
return ( | ||
<div> | ||
<DefaultButton | ||
id="targetButton" | ||
onClick={toggleTeachingBubbleVisible} | ||
text={teachingBubbleVisible ? 'Hide TeachingBubble' : 'Show TeachingBubble'} | ||
/> | ||
|
||
{teachingBubbleVisible && ( | ||
<TeachingBubble | ||
target="#targetButton" | ||
primaryButtonProps={examplePrimaryButtonProps} | ||
secondaryButtonProps={exampleSecondaryButtonProps} | ||
onDismiss={toggleTeachingBubbleVisible} | ||
hasCloseButton={true} | ||
headline="Discover what’s trending around you" | ||
> | ||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Facere, nulla, ipsum? Molestiae quis aliquam magni | ||
harum non? | ||
</TeachingBubble> | ||
)} | ||
</div> | ||
); | ||
}; |
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