[Dismiss Wrapper] Change button visibility, button positioning, and back transition duration
Categories
(Firefox :: New Tab Page, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | verified |
People
(Reporter: wolasi, Assigned: gsuntop)
References
Details
(Keywords: github-merged)
Attachments
(3 files)
Please make the following changes
Button Tweaks
- Change margins on
.ds-dismiss .ds-dismiss-button
tomargin: 18px 18px 0 0;
- Button should always be visible, remove
opacity
property - Add hover, press, and focus states per spec https://www.figma.com/file/eGdZVYlZ5evvePHUCtKnYg7u/New-Tab-Spec-for-Fx-70?node-id=97%3A18
- Change
transition-duration
for background on.ds-dismiss
to200ms
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Reporter | ||
Comment 1•5 years ago
|
||
Also, let's add a text label for accessibility. Label should be "Dismiss"
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Updated•5 years ago
|
Comment 4•5 years ago
|
||
Comment 5•5 years ago
|
||
I have verified this issue on Latest Firefox Nightly 71.0a1 (Build ID: 20191006214844) on Windows 10 x64, Mac 10.14.6 and Arch Linux 4.16.6 x64.
I have verified the following button tweaks and can confirm that:
- That the "Dismiss" button is always reproducible and no longer has the
opacity
property. - The "Dismiss" button has a hover/press and focus state as per the design specifications.
- The
transition-duration
for the background is set to200ms
.
However, even if the margin for .ds-dismiss .ds-dismiss-button
is set to the right value (margin: 18px 18px 0 0;), it seems that .ds-dismiss-ds-text-promo .ds-dismiss-button
has higher priority than .ds-dismiss .ds-dismiss-button
therefore overwriting the margin to 16px. I am attaching a screenshot.
@gsuntop, is this intended?
Assignee | ||
Comment 6•5 years ago
|
||
Good catch. Yes that should be margin: 18px 18px 0 0
not margin: 16px
as overridden.
Comment 7•5 years ago
|
||
Comment 8•5 years ago
|
||
Comment 9•5 years ago
|
||
Comment 10•5 years ago
|
||
I have verified this issue on Latest Firefox Nightly 71.0a1 (Build ID: 20191021095628) on Windows 10 x64, Mac 10.14.6 and Arch Linux 5.3.6 x64.
I have verified the following button tweaks and can confirm that:
- That the "Dismiss" button is always visible and no longer has the
opacity
property. - The "Dismiss" button has a hover/press and focus state as per the design specifications.
- The
transition-duration
for the background is set to200ms
. - The
margin
for.ds-dismiss .ds-dismiss-button
is set to the right value: 18px 18px 0 0;
Description
•