File tree Expand file tree Collapse file tree 5 files changed +14
-1
lines changed
compass-aggregations/src/components/pipeline-toolbar/pipeline-settings
compass-components/src/components
compass-crud/src/components
compass-generative-ai/src/components Expand file tree Collapse file tree 5 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ export const PipelineSettings: React.FunctionComponent<
7878 onClick = { onExportToLanguage }
7979 data-testid = "pipeline-toolbar-export-button"
8080 disabled = { ! isExportToLanguageEnabled }
81+ title = "Export to language"
8182 >
8283 < span className = { hiddenOnNarrowPipelineToolbarStyles } >
8384 Export to language
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import type { ButtonProps } from '@leafygreen-ui/button';
1818import type { glyphs } from '@leafygreen-ui/icon' ;
1919import { spacing } from '@leafygreen-ui/tokens' ;
2020import { css , cx } from '@leafygreen-ui/emotion' ;
21+ import { WorkspaceContainer } from './workspace-container' ;
2122
2223export type ItemAction < Action extends string > = {
2324 action : Action ;
@@ -486,6 +487,13 @@ export function ItemActionControls<Action extends string>({
486487 return < ItemActionGroup actions = { actions } { ...sharedProps } > </ ItemActionGroup > ;
487488}
488489
490+ const hiddenOnNarrowStyles = css ( {
491+ [ `@container ${ WorkspaceContainer . toolbarContainerQueryName } (width < 900px)` ] :
492+ {
493+ display : 'none' ,
494+ } ,
495+ } ) ;
496+
489497export function DropdownMenuButton < Action extends string > ( {
490498 isVisible = true ,
491499 actions,
@@ -557,8 +565,9 @@ export function DropdownMenuButton<Action extends string>({
557565 onClick && onClick ( evt ) ;
558566 } }
559567 rightGlyph = { < Icon glyph = { 'CaretDown' } /> }
568+ title = { buttonText }
560569 >
561- { buttonText }
570+ < span className = { hiddenOnNarrowStyles } > { buttonText } </ span >
562571 { children }
563572 </ Button >
564573 ) ;
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ const DeleteMenuButton: React.FunctionComponent<DeleteMenuButtonProps> = ({
3131 onClick = { onClick }
3232 leftGlyph = { < Icon glyph = "Trash" > </ Icon > }
3333 data-testid = "crud-bulk-delete"
34+ title = "Delete"
3435 >
3536 < span className = { hiddenOnNarrowStyles } > Delete</ span >
3637 </ Button >
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ const UpdateMenuButton: React.FunctionComponent<UpdateMenuButtonProps> = ({
3131 onClick = { onClick }
3232 leftGlyph = { < Icon glyph = "Edit" > </ Icon > }
3333 data-testid = "crud-update"
34+ title = "Update"
3435 >
3536 < span className = { hiddenOnNarrowStyles } > Update</ span >
3637 </ Button >
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ function AIExperienceEntry({
105105 onClick = { onClick }
106106 data-testid = { dataTestId }
107107 type = "button"
108+ title = { `Generate ${ type } ` }
108109 >
109110 < span className = { hiddenOnNarrowStyles } > Generate { type } </ span >
110111 < AIEntrySVG darkMode = { darkMode } />
You can’t perform that action at this time.
0 commit comments