mirror of
https://github.com/Lissy93/dashy.git
synced 2024-12-26 10:24:40 +03:00
♿ Fixes accesibility issues in some Widgets
This commit is contained in:
parent
1324b43c0e
commit
9c6c35ea89
@ -4,7 +4,7 @@
|
|||||||
{{ title }}
|
{{ title }}
|
||||||
</a>
|
</a>
|
||||||
<a :href="hdImage" title="View HD Image" class="picture" target="__blank">
|
<a :href="hdImage" title="View HD Image" class="picture" target="__blank">
|
||||||
<img :src="image" />
|
<img :src="image" :alt="title" />
|
||||||
</a>
|
</a>
|
||||||
<p class="copyright">{{ copyright }}</p>
|
<p class="copyright">{{ copyright }}</p>
|
||||||
<p class="description">{{ truncatedDescription }}</p>
|
<p class="description">{{ truncatedDescription }}</p>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
class="asset-wrapper"
|
class="asset-wrapper"
|
||||||
v-tooltip="tooltip(asset.info)"
|
v-tooltip="tooltip(asset.info)"
|
||||||
>
|
>
|
||||||
<img class="icon" :src="asset.image" />
|
<img class="icon" :src="asset.image" :alt="`${asset} icon`" />
|
||||||
<p class="name">{{ asset.name }}</p>
|
<p class="name">{{ asset.name }}</p>
|
||||||
<p class="price">{{ asset.price | formatPrice }}</p>
|
<p class="price">{{ asset.price | formatPrice }}</p>
|
||||||
<p :class="`percent ${asset.percentChange > 0 ? 'up' : 'down'}`">
|
<p :class="`percent ${asset.percentChange > 0 ? 'up' : 'down'}`">
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="readme-stats">
|
<div class="readme-stats">
|
||||||
<img class="stats-card" v-if="!hideProfileCard" :src="profileCard" />
|
<img class="stats-card" v-if="!hideProfileCard" :src="profileCard" alt="Profile Card" />
|
||||||
<img class="stats-card" v-if="!hideLanguagesCard" :src="topLanguagesCard" />
|
<img class="stats-card" v-if="!hideLanguagesCard" :src="topLanguagesCard" alt="Languages" />
|
||||||
<template v-if="repos">
|
<template v-if="repos">
|
||||||
<img class="stats-card" v-for="(repo, index) in repoCards" :key="index" :src="repo" />
|
<img class="stats-card" v-for="(repo, i) in repoCards" :key="i" :src="repo" :alt="repo" />
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="trending-repos-wrapper" v-if="trendingRepos">
|
<div class="trending-repos-wrapper" v-if="trendingRepos">
|
||||||
<div v-for="repo in trendingRepos" :key="repo.idx" class="repo-row">
|
<div v-for="repo in trendingRepos" :key="repo.idx" class="repo-row">
|
||||||
<img class="repo-img" v-if="repo.avatar" :src="repo.avatar" />
|
<img class="repo-img" v-if="repo.avatar" :src="repo.avatar" alt="Repo" />
|
||||||
<div class="repo-info">
|
<div class="repo-info">
|
||||||
<p class="repo-name">{{ repo.name }}</p>
|
<p class="repo-name">{{ repo.name }}</p>
|
||||||
<div class="star-wrap">
|
<div class="star-wrap">
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
v-if="frameUrl"
|
v-if="frameUrl"
|
||||||
:src="frameUrl"
|
:src="frameUrl"
|
||||||
:id="frameId"
|
:id="frameId"
|
||||||
|
title="Iframe Widget"
|
||||||
:style="frameHeight ? `height: ${frameHeight}px` : ''"
|
:style="frameHeight ? `height: ${frameHeight}px` : ''"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<span class="date">{{ article.published | date }}</span>
|
<span class="date">{{ article.published | date }}</span>
|
||||||
</div>
|
</div>
|
||||||
<p class="description">{{ article.description }}</p>
|
<p class="description">{{ article.description }}</p>
|
||||||
<img class="thumbnail" v-if="article.image" :src="article.image" />
|
<img class="thumbnail" v-if="article.image" :src="article.image" alt="Thumbnail" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="ip-info-wrapper">
|
<div class="ip-info-wrapper">
|
||||||
<p class="ip-address">{{ ipAddr }}</p>
|
<p class="ip-address">{{ ipAddr }}</p>
|
||||||
<div class="region-wrapper" title="Open in Maps">
|
<div class="region-wrapper" title="Open in Maps">
|
||||||
<img class="flag-image" :src="flagImg" />
|
<img class="flag-image" :src="flagImg" alt="Flag" />
|
||||||
<div class="info-text">
|
<div class="info-text">
|
||||||
<p class="isp-name">{{ ispName }}</p>
|
<p class="isp-name">{{ ispName }}</p>
|
||||||
<a class="ip-location" :href="mapsUrl">{{ location }}</a>
|
<a class="ip-location" :href="mapsUrl">{{ location }}</a>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="rss-wrapper">
|
<div class="rss-wrapper">
|
||||||
<!-- Feed Meta Info -->
|
<!-- Feed Meta Info -->
|
||||||
<a class="meta-container" v-if="meta" :href="meta.link" :title="meta.description">
|
<a class="meta-container" v-if="meta" :href="meta.link" :title="meta.description">
|
||||||
<img class="feed-icon" :src="meta.image" v-if="meta.image" />
|
<img class="feed-icon" :src="meta.image" v-if="meta.image" alt="Feed Image" />
|
||||||
<div class="feed-text">
|
<div class="feed-text">
|
||||||
<p class="feed-title">{{ meta.title }}</p>
|
<p class="feed-title">{{ meta.title }}</p>
|
||||||
<p class="feed-author" v-if="meta.author">By {{ meta.author }}</p>
|
<p class="feed-author" v-if="meta.author">By {{ meta.author }}</p>
|
||||||
@ -12,7 +12,7 @@
|
|||||||
<div class="post-wrapper" v-if="posts">
|
<div class="post-wrapper" v-if="posts">
|
||||||
<div class="post-row" v-for="(post, indx) in posts" :key="indx">
|
<div class="post-row" v-for="(post, indx) in posts" :key="indx">
|
||||||
<a class="post-top" :href="post.link">
|
<a class="post-top" :href="post.link">
|
||||||
<img class="post-img" :src="post.image" v-if="post.image">
|
<img class="post-img" :src="post.image" v-if="post.image" alt="Post Image">
|
||||||
<div class="post-title-wrap">
|
<div class="post-title-wrap">
|
||||||
<p class="post-title">{{ post.title }}</p>
|
<p class="post-title">{{ post.title }}</p>
|
||||||
<p class="post-date">
|
<p class="post-date">
|
||||||
|
@ -14,8 +14,11 @@
|
|||||||
</p>
|
</p>
|
||||||
<!-- Charts -->
|
<!-- Charts -->
|
||||||
<div class="charts">
|
<div class="charts">
|
||||||
<img class="uptime-pie-chart" :src="makeChartUrl(service.uptime24, '24 Hours')" />
|
<img
|
||||||
<img class="uptime-pie-chart" :src="makeChartUrl(service.uptime7, '7 Days')" />
|
class="uptime-pie-chart" alt="24 Hour Uptime Chart"
|
||||||
|
:src="makeChartUrl(service.uptime24, '24 Hours')" />
|
||||||
|
<img class="uptime-pie-chart" alt="7 Day Uptime Chart"
|
||||||
|
:src="makeChartUrl(service.uptime7, '7 Days')" />
|
||||||
</div>
|
</div>
|
||||||
<!-- Info -->
|
<!-- Info -->
|
||||||
<div class="info">
|
<div class="info">
|
||||||
|
Loading…
Reference in New Issue
Block a user