Skip to content

Commit

Permalink
Fixing image sizing when outside the grid (#139)
Browse files Browse the repository at this point in the history
* Fixing image sizing when outside the grid

* fix: pa11y error

* fix: pa11y warning

* refactor image height to allow scaling

* revert fix

Co-authored-by: Anna Yeshtukova <>
Co-authored-by: Benjamin Chiong <[email protected]>
  • Loading branch information
anna-yeshtukova and cdbenj authored Apr 19, 2021
1 parent a00eafe commit de74bd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/banner/_banner.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</div>
{{/if}}

<div class="nsw-banner__box" role="presentation">
<div class="nsw-banner__box" {{#unless img}}role="presentation"{{/unless}}>
{{#if img}}
<img class="nsw-banner__image" src="{{img}}" alt="" />
{{else}}
Expand Down
3 changes: 1 addition & 2 deletions src/components/content-block/_content-block.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
display: flex;
flex-direction: column;
overflow: hidden;
height: 100%;

&__title {
@include font-stack('heading');
Expand Down Expand Up @@ -67,7 +66,7 @@

&__image {
width: 100%;
height: 100%;
height: rem(200px);
object-fit: cover;
}

Expand Down

0 comments on commit de74bd2

Please sign in to comment.