Skip to content

Commit 50db585

Browse files
committed
Fixed linting issue for no-redundant-role
refs https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-redundant-role.md - a newer version of ember-template-lint added this linting rule, and it looks like an accurate change to make, so this removes the redundant roles
1 parent 73d9923 commit 50db585

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ghost/admin/app/components/dashboard/onboarding/share-modal.hbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{{#let (get-setting "coverImage") as |imageUrl|}}
99
{{#if imageUrl}}
1010
<div class="gh-share-card-image">
11-
<img src={{imageUrl}} alt="" role="presentation" />
11+
<img src={{imageUrl}} alt="" />
1212
</div>
1313
{{else}}
1414
<div class="gh-share-card-image gh-cover-placeholder">{{svg-jar "picture"}}</div>

ghost/admin/app/components/gh-post-bookmark.hbs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
{{#let (or @post.featureImage (get-setting "coverImage")) as |imageUrl|}}
44
{{#if imageUrl}}
55
<div class="gh-post-bookmark-image">
6-
<img src={{imageUrl}} alt="" role="presentation" />
6+
<img src={{imageUrl}} alt="" />
77
</div>
88
{{/if}}
99
<div class="gh-post-bookmark-content {{if imageUrl "" "no-image"}}">
1010
<div class="gh-post-bookmark-title">{{@post.title}}</div>
1111
<div class="gh-post-bookmark-text truncate">{{@post.excerpt}}</div>
1212
<div class="gh-post-bookmark-details">
1313
{{#if (get-setting "icon")}}
14-
<div class="gh-post-bookmark-site-icon"><img src={{get-setting "icon"}} alt="" role="presentation" /></div>
14+
<div class="gh-post-bookmark-site-icon"><img src={{get-setting "icon"}} alt="" /></div>
1515
{{/if}}
1616
<div class="gh-post-bookmark-site-title">{{get-setting "title"}}</div>
1717
<div class="gh-post-bookmark-authors">{{post-author-names @post}}</div>

ghost/admin/app/templates/mentions.hbs

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
</div>
8989
{{#if mention.sourceFeaturedImage}}
9090
<div class="gh-mention-thumbnail">
91-
<img src="{{mention.sourceFeaturedImage}}" alt="" role="presentation">
91+
<img src="{{mention.sourceFeaturedImage}}" alt="" >
9292
</div>
9393
{{/if}}
9494
</div>
@@ -110,7 +110,7 @@
110110
{{#if this.mentionsInfinityModel}}
111111
<div class="gh-mentions-sidebar">
112112
<div class="gh-mentions-explainer">
113-
<img src="assets/img/mentions-background.png" alt="" role="presentation"/>
113+
<img src="assets/img/mentions-background.png" alt="" />
114114
<h2>Introducing Mentions</h2>
115115
<p>Whenever another person or site links to you, you’ll receive a notification in your dashboard to show you who’s talking about your content — and, when you link to someone else’s work, they’ll be notified, too.</p>
116116
</div>

0 commit comments

Comments
 (0)