Skip to content

Commit 216ab7b

Browse files
Updated the title styles
1 parent 7e5f9a7 commit 216ab7b

2 files changed

Lines changed: 4 additions & 19 deletions

File tree

contentcuration/contentcuration/frontend/shared/views/StudioNavigation.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
ref="toolbar"
1616
type="clear"
1717
:style="{
18-
overflowX: 'auto',
18+
overflowX: 'hidden',
1919
backgroundColor: $themeTokens.appBar,
2020
height: '56px',
2121
}"

contentcuration/contentcuration/frontend/shared/views/StudioNavigationTab.vue

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@
1111
':focus': { ...$coreOutline, outlineOffset: 0 }
1212
})
1313
]"
14-
1514
:style="tabStyles"
1615
:aria-current="isActive ? 'page' : null"
1716
:tabindex="tabindex"
18-
@click="handleClick"
19-
@keydown="handleKeydown"
17+
@click="$emit('click', $event)"
18+
@keydown="$emit('keydown', $event)"
2019
>
2120
<span class="studio-navigation-tab__content">
2221
<slot></slot>
@@ -25,7 +24,7 @@
2524
class="studio-navigation-tab__badge"
2625
:aria-label="badgeAriaLabel"
2726
>
28-
{{ formattedBadgeValue }}
27+
{{ badgeValue }}
2928
</span>
3029
</span>
3130
<span
@@ -81,7 +80,6 @@
8180
};
8281
},
8382
isActive() {
84-
// Check if current route matches this tab's route
8583
if (!this.to || !this.$route) return false;
8684
8785
const targetRoute = this.$router.resolve(this.to);
@@ -90,23 +88,10 @@
9088
showBadge() {
9189
return this.badgeValue > 0;
9290
},
93-
formattedBadgeValue() {
94-
return this.badgeValue.toString();
95-
},
9691
badgeAriaLabel() {
97-
if (!this.showBadge) return null;
9892
return `${this.badgeValue} notification${this.badgeValue !== 1 ? 's' : ''}`;
9993
},
10094
},
101-
methods: {
102-
handleClick(event) {
103-
this.$emit('click', event);
104-
},
105-
handleKeydown(event) {
106-
// Emit keydown event for parent to handle navigation
107-
this.$emit('keydown', event);
108-
},
109-
},
11095
};
11196
11297
</script>

0 commit comments

Comments
 (0)