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

Fixed customise button preventing to click setting icon (#15221) #8500

Closed
wants to merge 1 commit into from

Conversation

Dzheky
Copy link
Contributor

@Dzheky Dzheky commented Apr 11, 2021

Fixes brave/brave-browser#15221

Submitter Checklist:

  • I confirm that no security/privacy review is needed, or that I have requested one
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally: npm run test -- brave_browser_tests, npm run test -- brave_unit_tests, npm run lint, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

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'};
Copy link
Member

@simonhong simonhong Apr 20, 2021

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?

Copy link
Member

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.

Copy link

@karenkliu karenkliu left a 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?

@Dzheky
Copy link
Contributor Author

Dzheky commented Apr 26, 2021

@karenkliu this would be a bit tricky but could be done, but why complicating it by making it the same button?

@karenkliu
Copy link

@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.

This is how it would look:
Screen Shot 2021-04-26 at 2 09 09 PM

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:

NTP

@Dzheky
Copy link
Contributor Author

Dzheky commented Apr 26, 2021

@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.

@petemill
Copy link
Member

petemill commented May 18, 2021

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.

@petemill
Copy link
Member

@Dzheky I'm closing this as I've moved your commit now to #8830

@petemill petemill closed this May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants