Problem/Motivation
Claro removes text-decoration styling from <abbr> tags, so there is no visual indication that it's an abbreviation.
Screenshot is with Gin but same issue applies:

This is due to a CSS rule in claro/css/base/elements.css line 239 that sets the text decoration to none for abbreviations that have a title (abbr[title]). I think this is unintentional and would have to have a really good reason for removing the expected behavior of a dotted underline (however the effect is achieved). Seems that Claro and normalize.css might be tripping over each other here?
Steps to reproduce
Add an <abbr> tag to any content that is displayed in Claro. See there is no styling of the tag to indicate it is an abbreviation.
The title text <abbr title="My abbr title text">for this abbr</abbr> should appear on hover.
Proposed resolution
Remove the following rule from Claro's styles:
abbr[title] {
-webkit-text-decoration: none;
text-decoration: none;
}
Remaining tasks
There should be visual indication for tags.
User interface changes
Abbreviations and acronyms are visibly hover-overable to get tooltip title with their expansion.
Before:

After:

API changes
None.
Data model changes
None.
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | 3403535-after-safari.png | 178.17 KB | nayana_mvr |
| #11 | 3403535-after-chrome.png | 197.11 KB | nayana_mvr |
| #11 | 3403535-before.png | 192.04 KB | nayana_mvr |
| #7 | Screenshot 2024-09-16 at 9.13.27 am.png | 73.05 KB | pameeela |
Issue fork drupal-3403535
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3403535-claro-removes-default
changes, plain diff MR !5511
Comments
Comment #2
mlncn commentedComment #4
nitin shrivastava commentedHey @mlncn,
i am not able to replicate this issue can you please provide some steps how to reproduce?
Comment #5
smustgrave commented@mlncn could you please add before/after screenshots to the issue summary as a UI change
Also steps to reproduce.
Comment #6
smustgrave commentedComment #7
pameeela commentedIssue still occurs and fix seems reasonable. Updated IS.
Comment #8
pameeela commentedComment #9
pameeela commentedComment #10
smustgrave commentedBut the comment
Are we re-introducing that?
Comment #11
nayana_mvr commentedI'm able to reproduce this issue on Drupal 11.x and the changes in MR!5511 fixes that. Regarding the comment
It refers to the file
core/themes/stable9/css/core/assets/vendor/normalize-css/normalize.csswhere the following style is written for abbr[title] :-I verified this in Chrome and safari, but there are no duplicate borders in any of them after this fix. Not sure whether there was any code change in
core/themes/stable9/css/core/assets/vendor/normalize-css/normalize.csslater.Noticed that
text-decorationworks differently in both browsers. Attaching the before and after(chrome and safari) screenshots for reference.Comment #12
smustgrave commentedWould be good if we can mark where this was fixed in normalize and thus answer the question of the code being remvoed about duplicate border.
Comment #13
smustgrave commentedSo this code was added to core in #3079738: Add Claro administration theme to core in 2019
Normalize.css was updated in #2821525: Update normalize.css to the most recent version in 2020, where believe this was fixed from normalize. Will mark.
Comment #15
tobiasbScope is claro. But claro does not remove the styling. ;-)
Comment #16
tobiasbBut the css.
Comment #22
nod_Committed and pushed 79a49040099 to 11.x and 26519bfa19a to 11.0.x and d8e98d67400 to 10.4.x and 730dc82cf3d to 10.3.x. Thanks!