Skip to content

InClassProject_W2_2Truths_1Lie#10

Open
Abed-Aghbar wants to merge 1 commit intoSallyMcGrath:mainfrom
Abed-Aghbar:main
Open

InClassProject_W2_2Truths_1Lie#10
Abed-Aghbar wants to merge 1 commit intoSallyMcGrath:mainfrom
Abed-Aghbar:main

Conversation

@Abed-Aghbar
Copy link
Copy Markdown

InClassProject_W2_2Truths_1Lie

 InClassProject_W2_2Truths_1Lie
Comment thread index.html
<main class="main">
<!-- how will you mark up your media objects -->
<section class="azan">
<div class="name">
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could use a <header> here instead of a <div>, the <header> tag is not just for the header of the page.

Comment thread styles.css
transition: 0.5s;
padding-top: 10px;
}
.azan:hover {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This style rule is the same as .abed:hover you could have added a class to both elements in the DOM and used a single style rule.

Comment thread styles.css
}

@media screen and (max-width: 700px) {
main {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  main {
    grid-template-columns: 0 1fr 0;
    grid-template-areas: 
    ". azan ."
    ". abed .";
  }

Comment thread index.html
<!-- how will you mark up your media objects -->
<section class="azan">
<div class="name">
<img src="img/download (1).jpg" />
Copy link
Copy Markdown

@mike-shields-dev mike-shields-dev Aug 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your app is failing Accessibility in Lighthouse because you do not have alt attributes in your images. If you know the size of the source images you intend to use. You should set the image elements height and width to match. This way the browser creates the correct amount of space for the image while it waits for the image to load. This preserves the intended layout should the image src fail to load and also reduces "jank" which improves UX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants