-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Merge master into prerelease/minor
- Loading branch information
Showing
6 changed files
with
95 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import React from 'react'; | ||
import {checkIcon} from '@workday/canvas-system-icons-web'; | ||
import {Menu, MenuItem} from '@workday/canvas-kit-preview-react/menu'; | ||
import {styled} from '@workday/canvas-kit-react/common'; | ||
import {type} from '@workday/canvas-kit-react/tokens'; | ||
|
||
const Header = styled(MenuItem)({ | ||
fontWeight: type.properties.fontWeights.bold, | ||
}); | ||
|
||
export const Headers = () => { | ||
return ( | ||
<Menu> | ||
<Header isHeader={true}>Sort By</Header> | ||
<MenuItem icon={checkIcon}> | ||
<span aria-label="sort by newest">Newest</span> | ||
</MenuItem> | ||
<MenuItem> | ||
<span aria-label="sort by oldest">Oldest</span> | ||
</MenuItem> | ||
<Header isHeader={true} hasDivider={true}> | ||
Display Density | ||
</Header> | ||
<MenuItem icon={checkIcon}> | ||
<span aria-label="display density simple">Simple</span> | ||
</MenuItem> | ||
<MenuItem> | ||
<span aria-label="display density detailed">Detailed</span> | ||
</MenuItem> | ||
</Menu> | ||
); | ||
}; |