-
Notifications
You must be signed in to change notification settings - Fork 868
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
Fixed customise button preventing to click setting icon (#15221) #8500
Conversation
When button is not visible it won't have any even listeners and won't preven other buttons to be clicked.
@@ -27,6 +27,7 @@ const CustomizeButton = styled('button')<Props>` | |||
border: none; | |||
font-weight: 800; | |||
cursor: pointer; | |||
pointer-events: ${p => p.show ? 'auto' : 'none'}; |
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.
@petemill I confirmed this change fixed the issue and this looks good to me. WDYT?
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.
Thanks I didn't notice this. It's good for now, I'll rebase on the latest refactor.
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.
Is there any way to just keep the same Customize button instead of having a different one for Brave News?
@karenkliu this would be a bit tricky but could be done, but why complicating it by making it the same button? |
@Dzheky Experientially it is the same button since it opens the Customize Dashboard panel; the only difference is which section the Customize Dashboard panel is opened to. Also, it would be more accessible since it is always visible regardless of where the user has scrolled on the New Tab page. We're getting rid of the settings, bookmark, history, and video icon once sidebar is out because these are all default items in the sidebar. At that point, the customize button would end up where we started: |
@karenkliu Oh I see, that would make sense yes. So if I understood correctly settings, bookmark, history, and video will be removed in future updates? If so then it makes sense to just keep one Customize button. |
Re-designing / re-using can come as a follow-up. This is a simple bug fix. Thanks for your contribution @Dzheky. It's a good bug fix. We should also remove the element from the DOM, or use an aria label to show it's hidden, otherwise screen readers may still announce it and allow click. |
Fixes brave/brave-browser#15221
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: