Needs work
Project:
Drupal core
Version:
main
Component:
Claro theme
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Jul 2011 at 20:08 UTC
Updated:
3 Jun 2024 at 13:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
yoroy commentedComment #2
Bojhan commentedSubscribe, I agree its too prominent especially on forms with a lot of required fields it gets a bit messy. I am not sure enough to mark it, RTBC though.
Comment #3
dawehnerI'm wondering whether something black stands out enough.
Comment #4
oadaeh commentedWhat about using a medium green (#0b0 or #0c0) as the marker color? It would stand out a bit from black and would be inviting, rather than alarming. I think blue would be confused with links.
Comment #5
valthebaldTagging
Comment #6
areke commentedThe patch needed to be re-rolled (the file was moved), so I re-rolled it.
Comment #7
philipz commentedWhat do you think about doing it like Zurb Foundation does? 'Required' written in smaller font (same color).
This seems elegant and very clear. Takes more space but space next to labels is usually not a problem in drupal forms.
Comment #8
nancy.beutels commentedTested patch 6 and looks good with the black asterisk. Tested on both on Firefox and Chrome.
Comment #9
alansaviolobo commentedthe contents of the patch are already present in the core.
Comment #10
yoroy commentedNope, asterisks are still red or have become red again. I still think a simple change to use the text color should be enough.
Comment #11
stborchertThe asterisk is replaced by a SVG in #2274631: Form required marker "\204E" is broken in Google Chrome 35 / Internet Explorer 9 (commit c5fe718) so the SVG files need to be updated.
* /core/misc/icons/ee0000/required.svg
* /core/themes/bartik/images/required.svg
* /core/themes/seven/images/required.svg
Comment #12
yoroy commentedLets do that!
Comment #13
stborchertChanged the color used in /core/misc/icons/ee0000/required.svg and /core/themes/seven/images/required.svg. The SVG located in Bartik seems to be unused and uses
#ffffffas color.Comment #14
manauwarsheikh commentedseems fine!
Current Status: All red asterisks are coming in black.attached screenshot
Comment #15
davidhernandezComment #16
valthebaldAdded beta evaluation
Comment #17
yoroy commentedBut does that mean there are now black asterisks in the ee0000 folder? Because #ee0000 is hex for red…
Comment #18
stborchertHm good point. How do we deal with this? Should I a) change the color within the file to
#333333and move the file to the folder "333333" or should I b) create a new folder named "3b3b3b" or c) just leave the old color code for this file?a) and b) would require an additional change in form.css of Bartik since it uses the default icon instead the required.svg within bartik/images.
With c) we would go with the red icon for Bartik and change it for Seven only.
Comment #22
yoroy commentedComment #23
yoroy commentedAnother reason to just use the same color as the text color itself: on dark backgrounds this fails on accessibility.
Comment #36
baluertlMany things have changed since this issue's creation but the original problem still exists. Now tested on a D11-beta1 regarding the two most used themes Drupal core is shipped with out-of-the-box:
Public theme (Olivero) already did this job, and seems unaffected:

But the admin theme (Claro) still shows in red:

I would also raise a more generic problem here: the naming conventions of files in core/misc/icons/ sub-directory are a total mess: some of them describe their meaning (bad practice), and some are properly named after what they depicts (the proper way)
Comment #39
gauravvvv commentedComment #40
gauravvvv commentedAfter patch


Comment #41
smustgrave commentedIssue summary should follow standard issue template. Currently has a broken image so screenshots need to be added.