Skip to content

Fix disappearing dismiss button on extension help #2801

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

Merged
merged 2 commits into from
Mar 2, 2021

Conversation

code-asher
Copy link
Member

No description provided.

The theme callback would set innerHTML on the header which wipes out the
dismiss button. With an inner div we can replace the inner HTML without
worrying about other elements in the header.

Closes #2799.
This makes it accessible via keyboard.
@code-asher code-asher requested a review from a team as a code owner March 1, 2021 19:41
Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

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

LGTM! 🎉

const dismiss = append(helperHeader, $('span'));
dismiss.innerHTML = 'Dismiss';
dismiss.style.display = 'block';
dismiss.style.textAlign = 'right';
dismiss.style.cursor = 'pointer';
dismiss.tabIndex = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Good call!

@jsjoeio jsjoeio added this to the v3.9.1 milestone Mar 1, 2021
@greyscaled greyscaled linked an issue Mar 2, 2021 that may be closed by this pull request
@code-asher code-asher merged commit 3e081ea into master Mar 2, 2021
@code-asher code-asher deleted the disappearing-dismiss branch March 2, 2021 16:14
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.

Extension help dismiss button disappears
2 participants