@@ -931,7 +931,7 @@ const RightPanel: Component<RightPanelProps> = (props) => {
931931 </ div >
932932 < button
933933 type = "button"
934- class = "button-tertiary px-2 py-1 text-xs "
934+ class = "right-panel-customization-button "
935935 onClick = { ( ) => updateRightPanelCustomization ( ( ) => parseRightPanelCustomization ( null ) ) }
936936 >
937937 { props . t ( "instanceShell.rightPanel.customize.reset" ) }
@@ -943,6 +943,7 @@ const RightPanel: Component<RightPanelProps> = (props) => {
943943 < div class = "right-panel-customization-group-title" > { props . t ( "instanceShell.rightPanel.customize.tabs" ) } </ div >
944944 < For each = { orderedRightPanelTabs ( ) } >
945945 { ( tab ) => {
946+ const label = ( ) => props . t ( tab . labelKey )
946947 const visible = ( ) => ! rightPanelCustomization ( ) . hiddenTabIds . includes ( tab . id )
947948 const disableHide = ( ) => visible ( ) && visibleRightPanelTabs ( ) . length <= 1
948949 return (
@@ -959,12 +960,14 @@ const RightPanel: Component<RightPanelProps> = (props) => {
959960 } ) )
960961 }
961962 />
962- < span > { props . t ( tab . labelKey ) } </ span >
963+ < span > { label ( ) } </ span >
963964 </ label >
964965 < div class = "right-panel-customization-actions" >
965966 < button
966967 type = "button"
967- class = "button-tertiary px-2 py-1 text-xs"
968+ class = "right-panel-customization-button"
969+ aria-label = { props . t ( "instanceShell.rightPanel.customize.moveTabUp" , { label : label ( ) } ) }
970+ title = { props . t ( "instanceShell.rightPanel.customize.moveTabUp" , { label : label ( ) } ) }
968971 onClick = { ( ) =>
969972 updateRightPanelCustomization ( ( current ) => ( {
970973 ...current ,
@@ -976,7 +979,9 @@ const RightPanel: Component<RightPanelProps> = (props) => {
976979 </ button >
977980 < button
978981 type = "button"
979- class = "button-tertiary px-2 py-1 text-xs"
982+ class = "right-panel-customization-button"
983+ aria-label = { props . t ( "instanceShell.rightPanel.customize.moveTabDown" , { label : label ( ) } ) }
984+ title = { props . t ( "instanceShell.rightPanel.customize.moveTabDown" , { label : label ( ) } ) }
980985 onClick = { ( ) =>
981986 updateRightPanelCustomization ( ( current ) => ( {
982987 ...current ,
@@ -997,6 +1002,7 @@ const RightPanel: Component<RightPanelProps> = (props) => {
9971002 < div class = "right-panel-customization-group-title" > { props . t ( "instanceShell.rightPanel.customize.statusSections" ) } </ div >
9981003 < For each = { orderedStatusSections ( ) } >
9991004 { ( section ) => {
1005+ const label = ( ) => props . t ( section . labelKey )
10001006 const visible = ( ) => ! rightPanelCustomization ( ) . hiddenStatusSectionIds . includes ( section . id )
10011007 const disableHide = ( ) => visible ( ) && visibleStatusSections ( ) . length <= 1
10021008 return (
@@ -1017,12 +1023,14 @@ const RightPanel: Component<RightPanelProps> = (props) => {
10171023 } ) )
10181024 }
10191025 />
1020- < span > { props . t ( section . labelKey ) } </ span >
1026+ < span > { label ( ) } </ span >
10211027 </ label >
10221028 < div class = "right-panel-customization-actions" >
10231029 < button
10241030 type = "button"
1025- class = "button-tertiary px-2 py-1 text-xs"
1031+ class = "right-panel-customization-button"
1032+ aria-label = { props . t ( "instanceShell.rightPanel.customize.moveStatusSectionUp" , { label : label ( ) } ) }
1033+ title = { props . t ( "instanceShell.rightPanel.customize.moveStatusSectionUp" , { label : label ( ) } ) }
10261034 onClick = { ( ) =>
10271035 updateRightPanelCustomization ( ( current ) => ( {
10281036 ...current ,
@@ -1039,7 +1047,9 @@ const RightPanel: Component<RightPanelProps> = (props) => {
10391047 </ button >
10401048 < button
10411049 type = "button"
1042- class = "button-tertiary px-2 py-1 text-xs"
1050+ class = "right-panel-customization-button"
1051+ aria-label = { props . t ( "instanceShell.rightPanel.customize.moveStatusSectionDown" , { label : label ( ) } ) }
1052+ title = { props . t ( "instanceShell.rightPanel.customize.moveStatusSectionDown" , { label : label ( ) } ) }
10431053 onClick = { ( ) =>
10441054 updateRightPanelCustomization ( ( current ) => ( {
10451055 ...current ,
0 commit comments