Ticket #549 (new enhancement)

Opened 7 years ago

Last modified 4 years ago

Special styling for admin-related content

Reported by: DarTar Owned by: unassigned
Priority: normal Milestone: blue-sky
Component: layout Version: 1.1.6.3
Severity: normal Keywords: stylesheet
Cc:

Description (last modified by DarTar) (diff)

It might be useful to add selectors allowing admin-related content to be styled in a specific way (e.g. many blogs highlight comments from the author to make them stand out from regular users' comments).

Places where this could be applied:

  • Admin userpages (but this maybe should be dealt with as part of the typed pages idea)
  • Comments by admins (a different background color?)
  • Links to admin userpages (maybe a special link icon?)

See also

  • #221 FormatUser() method

Change History

  Changed 7 years ago by DarTar

  • type changed from defect to enhancement

  Changed 7 years ago by DarTar

  • description modified (diff)

follow-up: ↓ 4   Changed 7 years ago by JavaWoman

  • milestone changed from 1.1.7.1 to 1.1.7

Accessibility alert: never use color as the only distinguishing attribute!

Apart from that, clearly labeling admins is obviously a good thing: users whould know "who" they are dealing with at all times.

For this reason I'm already adding an "admin flag" to all admin names shown in the context of the feedback action (see #547 and attached analysis). Not a special link icon since that doesn't have an alt attribute and is thus not "visible" to users of screen readers - i'm using a plain-text "flag".

An icon is fine, but can't be used in email (that should remain plain text), and shouldn't be CSS-generated because that would prevent an alt text.Thus for HTML only, a real image only, with alt text (at least - a title attribute would be a good addition), would do. For email, the text-only "flag" should be used. (I'm using a text-only "anonymous user" flag as well!)

And yes, some of this at least might be pushed into the FormatUser() method.

... changing milestone to 1.1.7 (since it's already being worked on; we can always refine later)

in reply to: ↑ 3   Changed 7 years ago by JavaWoman

Replying to JavaWoman: Also note that none of the above in the feedback action actually entails "selectors" (I assume you mean ids or classes) - precisely because this type of content (or styling) should [b]not/b (only) be CSS-generated for accessibility reasons.

  Changed 6 years ago by NilsLindenberg

  • milestone changed from 1.1.7 to 1.1.7.2

  Changed 4 years ago by BrianKoontz

  • milestone changed from 1.3 to blue-sky
Note: See TracTickets for help on using tickets.