-
Notifications
You must be signed in to change notification settings - Fork 873
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
Cleanup how the MdTextButton works #16124
Conversation
98a6fa1
to
f820f7f
Compare
f820f7f
to
ce3074d
Compare
After loading https://www.theatlantic.com/world/ and click feed icon from location bar, I got below crash.
|
Oh nice catch! Fixed! 😄 It's interesting, I didn't think that code path was being executed at all. |
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.
++ 👍🏼
230d007
to
ab088d8
Compare
ab088d8
to
0667d51
Compare
0667d51
to
6dd7191
Compare
return; | ||
} | ||
|
||
// Override border color for hover on non-prominent |
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.
I'm confused about these changes, why aren't we just overriding the ColorProvider?
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.
I assume that we had to copy the same code and use same bg color(kColorDialogBackground
) so used kBraveBrandedColor
directly instead of updating kColorButtonBorder
.
As we'll use ui::ButtonStyle
instead of Kind
from cr126
, I think we could try to override this button style's color via color provider instead of using GetButtonThemes()
.
Filed f/u issue for this - brave/brave-browser#38438
Resolves brave/brave-browser#27324
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:
Buttons in the Brave News Subscribe dialog should not change
Buttons in the permissions prompts (allow/deny) (i.e. for location) should not change