diff options
author | julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> | 2023-04-06 11:10:42 +0200 |
---|---|---|
committer | julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> | 2023-04-06 12:37:40 +0200 |
commit | 0df1361dddcc43c6b0a3fd9bfbae9610b7ed673c (patch) | |
tree | caa2d7aa42682e5b6e4ff3a7667a1249a40ea02d /apps/weather_status/src | |
parent | f61bcd8b5f49a7b85576849469d3a73b14d0ecd7 (diff) | |
download | nextcloud-server-0df1361dddcc43c6b0a3fd9bfbae9610b7ed673c.tar.gz nextcloud-server-0df1361dddcc43c6b0a3fd9bfbae9610b7ed673c.zip |
Add `aria-hidden='true'` to decorative icons inside of modal dialogs
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Diffstat (limited to 'apps/weather_status/src')
-rw-r--r-- | apps/weather_status/src/App.vue | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/weather_status/src/App.vue b/apps/weather_status/src/App.vue index 910284bdb2d..7035b586d32 100644 --- a/apps/weather_status/src/App.vue +++ b/apps/weather_status/src/App.vue @@ -24,32 +24,38 @@ <div id="weather-status-menu-item"> <NcActions class="weather-status-menu-item__subheader" :default-icon="weatherIcon" + :aria-hidden="true" :menu-title="currentWeatherMessage"> <NcActionText v-if="gotWeather" + :aria-hidden="true" :icon="futureWeatherIcon"> {{ forecastMessage }} </NcActionText> <NcActionLink v-if="gotWeather" icon="icon-address" target="_blank" + :aria-hidden="true" :href="weatherLinkTarget" :close-after-click="true"> {{ locationText }} </NcActionLink> <NcActionButton v-if="gotWeather" :icon="addRemoveFavoriteIcon" + :aria-hidden="true" @click="onAddRemoveFavoriteClick"> {{ addRemoveFavoriteText }} </NcActionButton> <NcActionSeparator v-if="address && !errorMessage" /> <NcActionButton icon="icon-crosshair" :close-after-click="true" + :aria-hidden="true" @click="onBrowserLocationClick"> {{ t('weather_status', 'Detect location') }} </NcActionButton> <NcActionInput ref="addressInput" :disabled="false" icon="icon-rename" + :aria-hidden="true" type="text" value="" @submit="onAddressSubmit"> @@ -57,12 +63,14 @@ </NcActionInput> <NcActionButton v-show="favorites.length > 0" :icon="toggleFavoritesIcon" + :aria-hidden="true" @click="showFavorites = !showFavorites"> {{ t('weather_status', 'Favorites') }} </NcActionButton> <NcActionButton v-for="f in displayedFavorites" :key="f" icon="icon-starred" + :aria-hidden="true" @click="onFavoriteClick($event, f)"> {{ f }} </NcActionButton> |