Test instructions copy icon color should match the text color to ensure it matches the theme colors. #9773
Labels
focus: checkout payments
priority: medium
The issue/PR is medium priority—non-critical functionality loss, minimal effect on usability
type: enhancement
The issue is a request for an enhancement.
Description
When the test instructions include a copyable test card number, there's a copy icon beside the number. Currently, this is an SVG as the background image of an HTML element and is a static color (black). When the user clicks to copy the number and that's successful, the icon changes to a green checkmark. Ideally, both icons will match the text color based on the WooPayments computed styles for the theme so they don't blend in with the background.
Acceptance criteria
Dev notes
I realize we can't directly affect the fill color of the SVG since it's being output as a
background-image
, but I think we can effectively achieve the same thing using masks. We'd need to ensure browser compatibility with all of the properties, but it could look something like this:Additional Context
This was mentioned in #9488 so I split it out into its own issue.
The text was updated successfully, but these errors were encountered: