Skip to content

Commit e47ccb2

Browse files
committed
feat: Added accessibility banner
1 parent 0022496 commit e47ccb2

File tree

5 files changed

+41
-2
lines changed

5 files changed

+41
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@
1717

1818
#ignore distributed files
1919
/src/Resources/public
20+
/src/Resources/app/administration/.tmp

src/Resources/app/administration/src/module/sw-extension-store/component/sw-extension-store-statistics-promotion/sw-extension-store-statistics-promotion.html.twig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
<div class="sw-extension-store-statistics-accessibility">
2+
<strong class="sw-extension-store-statistics-accessibility__info">
3+
{{ $t('sw-extension-store-statistics-promotion.accessibility-text') }}
4+
</strong>
5+
6+
<mt-button
7+
class="sw-extension-store-statistics-accessibility__link"
8+
variant="primary"
9+
:link="$tc('sw-extension-store-statistics-promotion.accessibility-link')"
10+
>
11+
{{ $t('sw-extension-store-statistics-promotion.accessibility-more-information') }} <mt-icon name="regular-long-arrow-right" size="12px" />
12+
</mt-button>
13+
</div>
14+
115
<div
216
v-if="showBanner"
317
class="sw-extension-store-statistics-promotion"

src/Resources/app/administration/src/module/sw-extension-store/component/sw-extension-store-statistics-promotion/sw-extension-store-statistics-promotion.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,21 @@
5454
}
5555
}
5656
}
57+
58+
.sw-extension-store-statistics-accessibility {
59+
display: grid;
60+
grid-template-columns: max-content 1fr;
61+
background: linear-gradient(#003075, #0156D0);
62+
padding: 16px 20px;
63+
border-radius: $border-radius-lg;
64+
margin-bottom: 20px;
65+
66+
&__info {
67+
color: white;
68+
align-self: center;
69+
}
70+
71+
&__link {
72+
justify-self: end;
73+
}
74+
}

src/Resources/app/administration/src/module/sw-extension-store/snippet/de-DE.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@
7474
"sw-extension-store-statistics-promotion": {
7575
"app-name": "Shopware Analytics",
7676
"app-description": "Erfasse wichtige Shop-Kennzahlen",
77-
"go-to-app": "Jetzt ausprobieren"
77+
"go-to-app": "Jetzt ausprobieren",
78+
"accessibility-text": "Erfahre mehr zu Barrierefreiheit von Erweiterungen im Shopware Store",
79+
"accessibility-more-information": "Jetzt mehr erfahren",
80+
"accessibility-link": "https://store.shopware.com/de/ressourcen/barrierefreiheit-von-erweiterungen/"
7881
}
7982
}

src/Resources/app/administration/src/module/sw-extension-store/snippet/en-GB.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@
7474
"sw-extension-store-statistics-promotion": {
7575
"app-name": "Shopware Analytics",
7676
"app-description": "Unlock store performance metrics",
77-
"go-to-app": "Try it out now"
77+
"go-to-app": "Try it out now",
78+
"accessibility-text": "Learn more about accessibility of extensions in the Shopware Store",
79+
"accessibility-more-information": "Learn more now",
80+
"accessibility-link": "https://store.shopware.com/en/resources/accessibility-of-extensions/"
7881
}
7982
}

0 commit comments

Comments
 (0)