General tips and tricks

# General tips and tricks

# Accessibility

Accessibility in the frond end is important, but it's good to know that this is also available for CraftCMS itself. Most users won't look for these (well hidden) options themselves, so it's good practice to activate them system-wide.

There are 4 options to activate:

  1. Always show focus ring. This way it's easy for the user to see what menu/part of the website they are navigating through.
  2. Use shapes. Entry or item status is usually shown in green or red, for colourblind people this can be very confusing. This option, in addition to the colour, adds shapes to the status symbols. Round is active, squares are disabled and triangles are drafts.
  3. Underline links. All clickable items in CraftCMS are underlined to show the user what objects can be interacted with.
  4. Notification duration. People that read slower than most need some more time to read pop-up notifications before they disappear, the default is 5 seconds, so make sure you give them plenty of time to read it.

In your general.php file just add the code below to activate all options mentioned above.

'accessibilityDefaults' => [ 'alwaysShowFocusRings' => true, 'useShapes' => true, 'underlineLinks' => true, 'notificationDuration' => 10000, ],