-
Notifications
You must be signed in to change notification settings - Fork 894
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
NTP Widget Settings design updates #6015
Conversation
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.
LGTM
17658f0
to
5131b6d
Compare
@petemill this one has been rebased |
3f53eb0
to
23d7cfa
Compare
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.
The "Add Card" button, when it's on its own looks too tall. That's underlined by the fact that the hover seems to only introduce a shadow covering the part of it which doesn't seem too tall:
It would be great to at least do a follow-up where we add style transitions. Some of the affects are a bit jarring. Specifically for this PR:
- "Add Card" shadow on hover getting a transition
but related:
- Settings popup getting some kind of bounce transition
- Settings popup growing / shrinking in height when changing tabs (or getting a fixed / percentage-of-viewport height)
- Widget order should transition / animate when changing
I also think we need a follow-up to address the context menu in that when opening it then mouseout-ing the widget, the menu disappears but re-appears when mouseenter-ing the widget subsequently.
These follow-ups could at least be added to the NTP board for when things calm down a bit on the feature front.
components/brave_new_tab_ui/components/default/settings/index.ts
Outdated
Show resolved
Hide resolved
components/brave_new_tab_ui/components/default/settings/index.ts
Outdated
Show resolved
Hide resolved
components/brave_new_tab_ui/components/default/settings/index.ts
Outdated
Show resolved
Hide resolved
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.
Great feature. Thanks for addressing feedback. Found a couple more issues but I don't think they're related as they seem the same on nightly. If not could you add follow-ups?
- Is it intentional that both the Add Card and the foreground Card have shadows on hover, but background Cards do not?
- Seems like the issue where you can't go from the Card's
...
button to the actual context menu is back - I thought we fixed that?
Failures unrelated |
@ryanml Milestone for this is 1.13.x right? |
It's supposed to be no shadows on hover for Add Card or background cards, but it looks kind of weird with the ghost styling so lets get rid of shadow on hover for all of them. |
Sounds good @karenkliu |
Resolves brave/brave-browser#10318
Note: The removal of "Show" text has been moved to a separate issue/PR brave/brave-browser#10591
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Additional specifications defined in issue for style updates. Functional testing plan with new "Add Card tab"
brave://newTab
More Cards
in the NTP settings, add back either widget.Reviewer Checklist:
After-merge Checklist:
changes has landed on.