-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Wizard): added prop to focus content on next/back (#10285)
* fix(Wizard): added prop to focus content on next/back * Added new example * Removed beta flag on context props * Removed aria-live attr * Updated prop name * Updated leftover instnaces of ...onNextOrBack prop name
- Loading branch information
1 parent
883f1f6
commit fe1d86c
Showing
8 changed files
with
97 additions
and
40 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
16 changes: 16 additions & 0 deletions
16
packages/react-core/src/components/Wizard/examples/WizardFocusOnNextBack.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,16 @@ | ||
import React from 'react'; | ||
import { Wizard, WizardStep } from '@patternfly/react-core'; | ||
|
||
export const WizardFocusOnNextBack: React.FunctionComponent = () => ( | ||
<Wizard shouldFocusContent title="Wizard that focuses content on next or back click"> | ||
<WizardStep name="Step 1" id="wizard-focus-first-step"> | ||
Step 1 content | ||
</WizardStep> | ||
<WizardStep name="Step 2" id="wizard-focus-second-step"> | ||
Step 2 content | ||
</WizardStep> | ||
<WizardStep name="Review" id="wizard-focus-review-step" footer={{ nextButtonText: 'Finish' }}> | ||
Review step content | ||
</WizardStep> | ||
</Wizard> | ||
); |
Oops, something went wrong.