12.FeaturedArticlesSection-HuffPostClone

BNTA logo

Objectives

  • Part 1. featured title section

    • BEM naming

    • Commit

  • Part 2. first featured article

    • More BEM naming

    • Screen read and accessibility

    • Commit

  • Part 3. Copy in rest of articles - mobile version complete

Table of contents

  • Above is an example of breaking the BEM convention of block__element for block__element__element

Commit:

  • git add .

  • git status

  • git commit -m "Add feature title section"

  • git log --oneline

  • git push -u origin main

Featured Article Section

  • BEM naming

  • featured__article image has been removed from accessiblity tree and had attribute tabindex set to -1 so that it is not a focusable element.

  • This is so that a user using a screen reader does not recieve a repeat of the same information.

Commit:

  • git add .

  • git status

  • git commit -m "Add featured article"

  • git log --oneline

  • git push -u origin main

  • We now have our mobile first version finished

Last updated