Skip to content

Conversation

jeff-phillips-18
Copy link
Member

@jeff-phillips-18 jeff-phillips-18 commented Sep 12, 2017

Fixes #603

Description

Changes the buttons in the pfWizard component to <button>'s making them keyboard accessible. No longer using the pfWizardNext, pfWizardPrevious, or pfWizardCancel components.

Copy link
Member

@dtaylor113 dtaylor113 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, surprised there were no unit test updates.

@jeff-phillips-18
Copy link
Member Author

Yeah, it's just changing the components to buttons, all classes and events stayed the same.

Copy link
Member

@cdcabrera cdcabrera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet, looks good!

@cdcabrera cdcabrera merged commit e1a61a2 into patternfly:master Sep 12, 2017
ng-class="{'wizard-pf-cancel-no-back': $ctrl.hideBackButton}"
ng-disabled="$ctrl.wizardDone" ng-click="$ctrl.onCancel()"
ng-if="!$ctrl.embedInPage">{{$ctrl.cancelTitle}}</pf-wiz-cancel>
<button ng-if="!$ctrl.embedInPage"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. My only question is, if there is a wizard with more than 2 panels, what happens when the "next" button is clicked? Does it reset focus on the first item in the next panel?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not handle setting the focus when a page is shown. That would be left to the application. Barring the application setting the focus, the next button would still have the focus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants