Using the Angular CDK Trap Focus Directive

Поділитися
Вставка
  • Опубліковано 26 лип 2024
  • A focus trap is a very important accessibility feature within a web application. In this video I’ll first help you understand what it is, then why it’s important, and finally I’ll show how to quickly and easily add the concept within your Angular apps where needed. And, it’s pretty easy thanks to the Angular CDK. Alright, let’s get to it.
    ------------------------------------------------------------------------------
    💖 Help Support the Channel:
    If you found this helpful and want to show some love, you can always buy me a coffee (buymeacoffee.com/briantreese)!
    ------------------------------------------------------------------------------
    🔗 Demo Link:
    stackblitz.com/edit/stackblit...
    ------------------------------------------------------------------------------
    📖 Chapters:
    0:00 - Introduction
    0:30 - What is a Focus Trap?
    1:50 - Understanding why we need the Angular CDK Trap Focus directive
    2:16 - The a11y acronym
    2:41 - Using the cdkTrapFocus directive
    3:02 - Providing focus on initialization with the cdkTrapFocusAutoCapture input
    ------------------------------------------------------------------------------
    #angular #angular_developer #angulartraining #javascript #typescript #frontend #angularcourse #cdk #accessibility
  • Наука та технологія

КОМЕНТАРІ • 1

  • @SouravBhar12
    @SouravBhar12 6 місяців тому

    Your videos are great. Thanks and please keep making them!