Skip to content

Commit 23fb18f

Browse files
committed
feat: Added accessibility banner
1 parent 40e2ec1 commit 23fb18f

File tree

8 files changed

+52
-1
lines changed

8 files changed

+52
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "swag/swag-extension-store",
3-
"version": "2.1.4",
3+
"version": "2.1.5",
44
"description": "SWAG Extension Store",
55
"type": "shopware-platform-plugin",
66
"license": "MIT",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import template from './sw-extension-store-accessibility.html.twig';
2+
import './sw-extension-store-accessibility.scss';
3+
4+
export default Shopware.Component.wrapComponentConfig({
5+
template
6+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<div class="sw-extension-store-accessibility">
2+
<strong class="sw-extension-store-accessibility__info">
3+
{{ $tc('sw-extension-store-accessibility.accessibility-text') }}
4+
</strong>
5+
6+
<sw-external-link
7+
class="sw-extension-store-accessibility__link sw-button sw-button--primary"
8+
:href="$tc('sw-extension-store-accessibility.accessibility-link')"
9+
>
10+
{{ $tc('sw-extension-store-accessibility.accessibility-more-information') }}&nbsp;<sw-icon name="regular-long-arrow-right" size="12px" />
11+
</sw-external-link>
12+
</div>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@import '~scss/variables';
2+
3+
.sw-extension-store-accessibility {
4+
display: grid;
5+
grid-template-columns: max-content 1fr;
6+
background: linear-gradient(#003075, #0156D0);
7+
padding: 16px 20px;
8+
border-radius: $border-radius-lg;
9+
margin-bottom: 20px;
10+
11+
&__info {
12+
color: white;
13+
align-self: center;
14+
}
15+
16+
&__link {
17+
justify-self: end;
18+
color: white !important;
19+
text-decoration: none !important;
20+
}
21+
}

src/Resources/app/administration/src/module/sw-extension-store/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Shopware.Component.register('sw-extension-label', () => import('./component/sw-e
1414
Shopware.Component.register('sw-extension-type-label', () => import('./component/sw-extension-store-type-label'));
1515
Shopware.Component.register('sw-extension-store-label-display', () => import('./component/sw-extension-store-label-display'));
1616
Shopware.Component.register('sw-extension-store-error-card', () => import('./component/sw-extension-store-error-card'));
17+
Shopware.Component.register('sw-extension-store-accessibility', () => import('./component/sw-extension-store-accessibility'));
1718
Shopware.Component.register('sw-extension-icon-polyfill', () => import('./component/sw-extension-icon-polyfill'));
1819
Shopware.Component.register('sw-extension-store-statistics-promotion', () => import('./component/sw-extension-store-statistics-promotion'));
1920
/* eslint-enable max-len */

src/Resources/app/administration/src/module/sw-extension-store/page/sw-extension-store-listing/sw-extension-store-listing.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<sw-loader v-if="isLoading"></sw-loader>
55
{% endblock %}
66

7+
<sw-extension-store-accessibility />
78
<sw-extension-store-statistics-promotion />
89

910
{% block sw_extension_store_listing_filter %}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,10 @@
6262
"paymentMeansRequiredLinkText": "eine Zahlungsmethode hinzufügen"
6363
}
6464
}
65+
},
66+
"sw-extension-store-accessibility": {
67+
"accessibility-text": "Erfahre mehr zu Barrierefreiheit von Erweiterungen im Shopware Store",
68+
"accessibility-more-information": "Jetzt mehr erfahren",
69+
"accessibility-link": "https://store.shopware.com/de/ressourcen/barrierefreiheit-von-erweiterungen/"
6570
}
6671
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,10 @@
6262
"paymentMeansRequiredLinkText": "add a payment method"
6363
}
6464
}
65+
},
66+
"sw-extension-store-accessibility": {
67+
"accessibility-text": "Learn more about accessibility of extensions in the Shopware Store",
68+
"accessibility-more-information": "Learn more now",
69+
"accessibility-link": "https://store.shopware.com/en/resources/accessibility-of-extensions/"
6570
}
6671
}

0 commit comments

Comments
 (0)