Skip to content

Commit 646d1cb

Browse files
committed
feat: Added accessibility banner
1 parent 51a9aa9 commit 646d1cb

File tree

8 files changed

+54
-2
lines changed

8 files changed

+54
-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
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') }} <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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import ExtensionStoreDataService from './service/extension-store-data.service';
22
import ExtensionLicenseService from './service/extension-store-licenses.service';
33

4-
/* eslint-disable max-len */
4+
55
Shopware.Component.register('sw-extension-store-index', () => import('./page/sw-extension-store-index'));
66
Shopware.Component.register('sw-extension-store-listing', () => import('./page/sw-extension-store-listing'));
77
Shopware.Component.register('sw-extension-store-detail', () => import('./page/sw-extension-store-detail'));
@@ -14,9 +14,10 @@ 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-store-statistics-promotion', () => import('./component/sw-extension-store-statistics-promotion'));
1819
Shopware.Component.register('sw-extension-store-in-app-purchases-listing-modal', () => import('./component/sw-extension-store-in-app-purchases-listing-modal'));
19-
/* eslint-enable max-len */
20+
2021

2122
Shopware.Application.addServiceProvider('extensionStoreDataService', () => {
2223
return new ExtensionStoreDataService(

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
@@ -70,5 +70,10 @@
7070
"in-app-purchases": {
7171
"onceOff": "einmalig"
7272
}
73+
},
74+
"sw-extension-store-accessibility": {
75+
"accessibility-text": "Erfahre mehr zu Barrierefreiheit von Erweiterungen im Shopware Store",
76+
"accessibility-more-information": "Jetzt mehr erfahren",
77+
"accessibility-link": "https://store.shopware.com/de/ressourcen/barrierefreiheit-von-erweiterungen/"
7378
}
7479
}

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
@@ -70,5 +70,10 @@
7070
"in-app-purchases": {
7171
"onceOff": "one-time"
7272
}
73+
},
74+
"sw-extension-store-accessibility": {
75+
"accessibility-text": "Learn more about accessibility of extensions in the Shopware Store",
76+
"accessibility-more-information": "Learn more now",
77+
"accessibility-link": "https://store.shopware.com/en/resources/accessibility-of-extensions/"
7378
}
7479
}

0 commit comments

Comments
 (0)