File tree Expand file tree Collapse file tree
contentcuration/contentcuration/frontend/shared/views Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 ref="toolbar"
1616 type="clear"
1717 :style =" {
18- overflowX: ' auto ' ,
18+ overflowX: ' hidden ' ,
1919 backgroundColor: $themeTokens .appBar ,
2020 height: ' 56px' ,
2121 } "
Original file line number Diff line number Diff line change 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 >
2524 class =" studio-navigation-tab__badge"
2625 :aria-label =" badgeAriaLabel"
2726 >
28- {{ formattedBadgeValue }}
27+ {{ badgeValue }}
2928 </span >
3029 </span >
3130 <span
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 );
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 >
You can’t perform that action at this time.
0 commit comments