aboutsummaryrefslogtreecommitdiffstats
path: root/apps/weather_status
diff options
context:
space:
mode:
authorjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>2023-04-06 11:10:42 +0200
committerjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>2023-04-06 12:37:40 +0200
commit0df1361dddcc43c6b0a3fd9bfbae9610b7ed673c (patch)
treecaa2d7aa42682e5b6e4ff3a7667a1249a40ea02d /apps/weather_status
parentf61bcd8b5f49a7b85576849469d3a73b14d0ecd7 (diff)
downloadnextcloud-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')
-rw-r--r--apps/weather_status/src/App.vue8
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>