Fix promo button to support link styling and href attribute
Categories
(Firefox :: Messaging System, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox103 | --- | fixed |
People
(Reporter: pdahiya, Assigned: jprickett)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
With fix of https://bugzilla.mozilla.org/show_bug.cgi?id=1761842, promo CTA started using button element instead of anchor tag. This broke the flow that relied on using href attribute to open promoLinkURL used by VPN Promo.
Fix of bug https://bugzilla.mozilla.org/show_bug.cgi?id=1770061 will allow opening URL using SpecialMessageActions API. Scope of this bug is to evaluate a) advantage of href navigation, b) if we want to keep styling for promo button as link vs button and accordingly cleanup the code.
Reporter | ||
Comment 1•2 years ago
|
||
Marking P2 in favor of no immediate requirement for styling promo button as link
Comment 2•2 years ago
|
||
The severity field is not set for this bug.
:tspurway, could you have a look please?
For more information, please visit auto_nag documentation.
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
Assignee | ||
Comment 4•2 years ago
|
||
Using an <a>
tag with tabindex="0"
here supports both cases of having either an anchor or a button, however it interrupts the accessibility of the button slightly.
Adding a role to the anchor in the case of it acting as a button, and adding a keyup handler to handle space and enter key events in the same way as click events brings this back into the realm of accessible.
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Pushed by jprickett@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/074332a16756 Adding link support to private browsing promo button r=pdahiya,emcminn
Comment 6•2 years ago
|
||
bugherder |
Description
•