Accessibility in Swift: Dynamic Colors | Continued Learning #30

Поділитися
Вставка
  • Опубліковано 20 жов 2024

КОМЕНТАРІ • 4

  • @TOMATOMAT7
    @TOMATOMAT7 Рік тому +1

    It's a really good lesson. Thank you for always providing great lectures.

  • @dasdom
    @dasdom Рік тому +3

    You can click the color in the Color Contrast Calculator. This opens a color picker with a control that lets you select the color from anywhere from screen.

  • @VaughanNicholson
    @VaughanNicholson Рік тому

    The accessibilityDifferentiateWithoutColor property isn't suggesting you should fallback to a black and white color scheme, it's suggesting that you should use shapes or glyphs to convey information instead of color.

    • @SunnyWalker
      @SunnyWalker 2 місяці тому

      To exemplify what @VaughnNicholson said, differentiating without color can be for something like required fields. Instead of saying "required fields are red" or "invalid fields have a red border and valid fields have a green border", at least use an additional indicator. You can still use those colors, but *also* put an icon or symbol to show the difference ("required fields have a red star" or "invalid fields are red and have a warning icon"). See WCAG 2.x 1.4.1: Use of Color