Skip to content
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

Add close button to draft warning #1095

Merged
merged 1 commit into from
Jan 29, 2018

Conversation

marionebl
Copy link
Contributor

This adds a close button to the warning about the second edition being a draft.

Clicking the button persists to the localStorage field mdbook-draft-warning using the store API. This approach has been adapted from the sidebar implementation.

Motivation

I found myself being distracted by the same warning on each chapter. Especially when using a darker theme the bright red of the message takes aways a lot of attention from the often crucial introduction paragraphs.

Before screen shot 2018-01-03 at 11 14 41
After screen shot 2018-01-03 at 11 15 17

@carols10cents
Copy link
Member

@steveklabnik how do you feel about this? how close are we to just removing the warning...?

@marionebl
Copy link
Contributor Author

Any news? I'd like to close this if you are not interested for housekeeping.

@carols10cents
Copy link
Member

ping @steveklabnik

@steveklabnik steveklabnik merged commit 29752ae into rust-lang:master Jan 29, 2018
@steveklabnik
Copy link
Member

Let's :shipit: . Thank you @marionebl and sorry about the wait!

@marionebl
Copy link
Contributor Author

Thanks 👍

@marionebl marionebl deleted the allow-warning-removal branch January 29, 2018 22:13
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.

3 participants