-
Notifications
You must be signed in to change notification settings - Fork 473
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
Required checkout fields showing a dotted underline under the required indicator #1262
Comments
Thanks @mikkamp - reproduced this in 2.5.4 and 2.5.3. Looks like a simple fix so I've added this to 2.5.5 milestone. I checked Twenty Twenty and Twenty Nineteen, and both reset I wonder if we should consider fixing this upstream in WooCommerce core? cc @peterfabian |
Update – I was mistaken, these theme fixes are in WooCommerce core. I'm reporting this issue there, so hopefully it can be fixed for all themes. I've opened a PR with the fix in Storefront as a fallback – woocommerce/woocommerce#1264. |
This is now logged to WooCommerce core repo: #2156 |
Removing this from 2.5.5 – it's not critical or urgent, and wasn't introduced in Storefront 2.5.3. |
@haszari As this issue is related to the WooCommerce core rather than the Storefront theme, can this ticket be closed? |
Closing - to follow / fix this issue please visit #2156 |
Reopening this issue, as this issue it not caused by WooCommerce but by Storefront. WooCommerce already uses storefront/inc/woocommerce/hooks.php Line 13 in b88139b
@haszari & @juliaamosova Any thoughts on this or shall I go ahead and close #2156 in benefit of this ticket? |
Good sleuthing @nielslange ! That's surprising, feels like Woo core and Storefront are working at cross purposes here. I think this means that this issue could be fixed in either place - and I'm not sure what the best solution is. I'm happy to keep both issues open for now. |
Not really. Technically, the issue is already fixed within WooCommerce and Storefront simply does not show that fix due to storefront/inc/woocommerce/hooks.php Line 13 in b88139b
Unless we open up Storefont in a way that the WooCommerce styles become active again, this issue needs to be addressed within Storefront. You know what I mean, @haszari? 🙂 |
Agreed, just feels unfortunate that we would reimplement a style rule which we get for free but then we've disabled (de-enqueued). Re-enqueuing the Woo styles (removing the override) is an option, though I'm assuming there's a reason we're doing this and to change now would break other things. (Which is also unfortunate!) Woo also has a storefront-specific stylesheet where we could presumably fix this, and there are probably other approaches we could take :) |
Describe the bug
When viewing the checkout page, the required fields show a red dotted underline under the
*
character:The element which is used for this text is
<abbr>
, which some browser style by default with a dotted underline. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbrIsolating the problem (mark completed items with an [x]):
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I'd expect this style to be reset so it doesn't show an underline. The CSS for this element is already being altered here: https://github.com/woocommerce/storefront/blob/version/2.5.4/assets/css/woocommerce/woocommerce.scss#L1572-L1575
So it could get an extra line to reset the
text-decoration
Browser Environment
It will depend on the Browser which is being used, in my case I'm using Chrome on Ubuntu.
WordPress Environment
Please provide relevant details of your WordPress setup and server environment.
The text was updated successfully, but these errors were encountered: