Skip to content

Commit c04168d

Browse files
authored
BC-10821-a11y-move-menu-item (#3956)
* Move a11y menu item to main menu bar
1 parent d75101f commit c04168d

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

src/modules/ui/layout/sidebar/Sidebar.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ const getItemsForUser = (items: SidebarItems) => {
7373
(child) => userHasPermission(child) && hasFeatureEnabled(child) && isEnabledForTheme(child)
7474
);
7575
}
76-
7776
return userHasPermission(item) && hasFeatureEnabled(item) && isEnabledForTheme(item);
7877
});
7978

src/modules/ui/layout/sidebar/SidebarItems.composable.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,14 @@ export const useSidebarItems = () => {
136136
featureValue: `${useEnvConfig().value.ACCESSIBILITY_REPORT_EMAIL}`,
137137
theme: [SchulcloudTheme.Brb, SchulcloudTheme.N21, SchulcloudTheme.Thr],
138138
},
139+
{
140+
href: filePathsModule.getSpecificFiles.accessibilityStatement as string,
141+
title: "components.legacy.footer.accessibility.statement",
142+
testId: "sidebar-system-accessibilitystatement",
143+
target: "_blank",
144+
rel: "noopener",
145+
theme: [SchulcloudTheme.Brb, SchulcloudTheme.N21, SchulcloudTheme.Thr],
146+
},
139147
{
140148
to: "/imprint",
141149
title: "components.legacy.footer.imprint",
@@ -174,14 +182,6 @@ export const useSidebarItems = () => {
174182
feature: "ALERT_STATUS_URL",
175183
featureValue: `${useEnvConfig().value.ALERT_STATUS_URL}`,
176184
},
177-
{
178-
href: filePathsModule.getSpecificFiles.accessibilityStatement as string,
179-
title: "components.legacy.footer.accessibility.statement",
180-
testId: "sidebar-system-accessibilitystatement",
181-
target: "_blank",
182-
rel: "noopener",
183-
theme: [SchulcloudTheme.Brb, SchulcloudTheme.N21, SchulcloudTheme.Thr],
184-
},
185185
{
186186
title: "global.sidebar.item.releaseNotes",
187187
href: "/system/releases",

src/modules/ui/layout/sidebar/SidebarItems.composable.unit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe("SidebarItems Composable", () => {
5959
it("should have correct amount of legal links", () => {
6060
const { legalLinks } = setup();
6161

62-
expect(legalLinks.value).toHaveLength(5);
62+
expect(legalLinks.value).toHaveLength(6);
6363
});
6464

6565
it("should have correct amount of meta links", () => {

0 commit comments

Comments
 (0)