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<
78
78
onClick = { onExportToLanguage }
79
79
data-testid = "pipeline-toolbar-export-button"
80
80
disabled = { ! isExportToLanguageEnabled }
81
+ title = "Export to language"
81
82
>
82
83
< span className = { hiddenOnNarrowPipelineToolbarStyles } >
83
84
Export to language
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import type { ButtonProps } from '@leafygreen-ui/button';
18
18
import type { glyphs } from '@leafygreen-ui/icon' ;
19
19
import { spacing } from '@leafygreen-ui/tokens' ;
20
20
import { css , cx } from '@leafygreen-ui/emotion' ;
21
+ import { WorkspaceContainer } from './workspace-container' ;
21
22
22
23
export type ItemAction < Action extends string > = {
23
24
action : Action ;
@@ -486,6 +487,13 @@ export function ItemActionControls<Action extends string>({
486
487
return < ItemActionGroup actions = { actions } { ...sharedProps } > </ ItemActionGroup > ;
487
488
}
488
489
490
+ const hiddenOnNarrowStyles = css ( {
491
+ [ `@container ${ WorkspaceContainer . toolbarContainerQueryName } (width < 900px)` ] :
492
+ {
493
+ display : 'none' ,
494
+ } ,
495
+ } ) ;
496
+
489
497
export function DropdownMenuButton < Action extends string > ( {
490
498
isVisible = true ,
491
499
actions,
@@ -557,8 +565,9 @@ export function DropdownMenuButton<Action extends string>({
557
565
onClick && onClick ( evt ) ;
558
566
} }
559
567
rightGlyph = { < Icon glyph = { 'CaretDown' } /> }
568
+ title = { buttonText }
560
569
>
561
- { buttonText }
570
+ < span className = { hiddenOnNarrowStyles } > { buttonText } </ span >
562
571
{ children }
563
572
</ Button >
564
573
) ;
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ const DeleteMenuButton: React.FunctionComponent<DeleteMenuButtonProps> = ({
31
31
onClick = { onClick }
32
32
leftGlyph = { < Icon glyph = "Trash" > </ Icon > }
33
33
data-testid = "crud-bulk-delete"
34
+ title = "Delete"
34
35
>
35
36
< span className = { hiddenOnNarrowStyles } > Delete</ span >
36
37
</ Button >
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ const UpdateMenuButton: React.FunctionComponent<UpdateMenuButtonProps> = ({
31
31
onClick = { onClick }
32
32
leftGlyph = { < Icon glyph = "Edit" > </ Icon > }
33
33
data-testid = "crud-update"
34
+ title = "Update"
34
35
>
35
36
< span className = { hiddenOnNarrowStyles } > Update</ span >
36
37
</ Button >
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ function AIExperienceEntry({
105
105
onClick = { onClick }
106
106
data-testid = { dataTestId }
107
107
type = "button"
108
+ title = { `Generate ${ type } ` }
108
109
>
109
110
< span className = { hiddenOnNarrowStyles } > Generate { type } </ span >
110
111
< AIEntrySVG darkMode = { darkMode } />
You can’t perform that action at this time.
0 commit comments