diff --git a/src/PageHeader/PageHeader.examples.stories.tsx b/src/PageHeader/PageHeader.examples.stories.tsx index ba986e5392e4..dd53e67badf0 100644 --- a/src/PageHeader/PageHeader.examples.stories.tsx +++ b/src/PageHeader/PageHeader.examples.stories.tsx @@ -12,6 +12,7 @@ import { ArrowRightIcon, TriangleDownIcon, CheckIcon, + CopyIcon, } from '@primer/octicons-react' import {PageHeader} from './PageHeader' @@ -19,7 +20,6 @@ import {Hidden} from '../Hidden' import {UnderlineNav} from '../UnderlineNav2' import {ActionMenu} from '../ActionMenu' import {ActionList} from '../ActionList' -import VisuallyHidden from '../_VisuallyHidden' const meta: Meta = { title: 'Drafts/Components/PageHeader/Examples', @@ -38,22 +38,36 @@ const setViewportParamToNarrow = { export const Webhooks = () => ( - - Repository settings - + + + Webhooks - - - - - - - - - - + + + + + Repository settings + context bar + + + + + + + + + + + + + + + + + + ) @@ -67,36 +81,37 @@ WebhooksOnNarrowViewport.parameters = setViewportParamToNarrow export const PullRequestPage = () => ( + + + PageHeader: Address dom order issues (screen reader experience feedback from sign-off) longer longer longer + longer + + Pull requests - - - PageHeader component initial layout explorations extra long pull request title - - - - - - - - - - alert('Edit button action')}>Edit - alert('Code button action')}>Code - - - - + + + + + + + + + alert('Edit button action')}>Edit + alert('Code button action')}>Code + + + + - - - - - - - - + + + + + + + Open @@ -145,8 +160,15 @@ PullRequestPageOnNarrowViewport.parameters = setViewportParamToNarrow export const FilesPage = () => ( + + / + + PageHeader.tsx + + + - Files + Files @@ -209,60 +231,60 @@ export const FilesPage = () => ( - + + + + - + alert('Wrap lines')}>Wrap lines + alert('Center content')}>Center content + + + alert('Delete file clicked')}> + Delete file + ⌘D + + + + + ) @@ -276,38 +298,38 @@ export const WithPageLayout = () => { - - Pull requests - PageHeader component initial layout explorations extra long pull request title   #1831 - - - {/* Pop up actions */} - - - - - - - alert('Edit button action')}>Edit - alert('Code button action')}>Code - - - - - - - - - - - - + + Pull requests + + + + {/* Pop up actions */} + + + + + + + alert('Edit button action')}>Edit + alert('Code button action')}>Code + + + + + + + + + + + + Open @@ -354,6 +376,7 @@ export const WithPageLayout = () => { Assignees + No one — - - + + + + + + ) @@ -194,14 +174,14 @@ export const WithLeadingAndTrailingActions = () => ( - - - Title - - - + + + + + + ) @@ -209,6 +189,9 @@ export const WithLeadingAndTrailingActions = () => ( export const WithParentLinkAndActionsOfContextArea = () => ( + + Title + Parent Link @@ -219,9 +202,6 @@ export const WithParentLinkAndActionsOfContextArea = () => ( - - Title - ) @@ -235,6 +215,9 @@ WithParentLinkAndActionsOfContextArea.parameters = { export const WithContextBarAndActionsOfContextArea = () => ( + + Title + @@ -255,9 +238,6 @@ export const WithContextBarAndActionsOfContextArea = () => ( - - Title - ) @@ -272,15 +252,15 @@ export const WithActionsThatHaveResponsiveContent = () => ( Webhooks - - - - - - - - + + + + + + + + ) diff --git a/src/PageHeader/PageHeader.stories.tsx b/src/PageHeader/PageHeader.stories.tsx index 794e30741d43..ab695e3bf85b 100644 --- a/src/PageHeader/PageHeader.stories.tsx +++ b/src/PageHeader/PageHeader.stories.tsx @@ -186,6 +186,21 @@ export default { export const Playground: Story = args => ( + + + + + - - - - - - - + + + + +