-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Site Settings: move primary button to <SectionHeader>. #373
Conversation
And update to use <Button>.
Tested, Works. I am kinda worried that this save button is in the same place as 'close' on Windows window. |
The section-header buttons is a pattern that will be extended to more sections as they adopt it. It's currently used in |
🚢 |
Site Settings: move primary button to <SectionHeader>.
onClick={ this.submitForm } | ||
primary={ true } | ||
type="submit" | ||
disabled={ this.state.fetchingSettings || this.state.submittingForm }> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for the next time maybe you could close the Component in the same TAB where it was opened.
<Button
compact={ true }
onClick={ this.submitForm }
primary={ true }
type="submit"
disabled={ this.state.fetchingSettings || this.state.submittingForm }
>
{ this.state.submittingForm
? this.translate( 'Saving…' )
// ...
And update it to use
<Button>
. Part of series of iterative improvements in the site settings screens.