File tree Expand file tree Collapse file tree 3 files changed +14
-13
lines changed
web/libs/editor/src/components Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 5353
5454.trigger {
5555 & .open {
56- background-color : var (--color-primary-emphasis );
57- color : var (--color-neutral-content );
58- border-radius : 4px ;
5956 opacity : 1 ;
6057 }
6158}
Original file line number Diff line number Diff line change @@ -46,17 +46,11 @@ export const RegionContextMenu: FC<{ item: any }> = observer(({ item }: { item:
4646
4747 return (
4848 < ContextMenuTrigger
49- className = { cn ( "region-context-menu" ) . toClassName ( ) }
49+ className = { cn ( "region-context-menu" ) . mod ( { open } ) . toClassName ( ) }
5050 content = { < ContextMenu actions = { actions } /> }
5151 onToggle = { ( isOpen ) => setOpen ( isOpen ) }
5252 >
53- < Button
54- variant = "neutral"
55- look = "string"
56- size = "smaller"
57- style = { { ...( open ? { display : "flex !important" } : null ) } }
58- aria-label = "Region options"
59- >
53+ < Button variant = "neutral" look = "string" size = "smaller" aria-label = "Region options" >
6054 < IconEllipsis />
6155 </ Button >
6256 </ ContextMenuTrigger >
Original file line number Diff line number Diff line change 233233 }
234234
235235 .region-context-menu button {
236- display : none ;
236+ transition : none ;
237+ opacity : 0 ;
238+ }
239+
240+ .region-context-menu_open button {
241+ opacity : 1 ;
237242 }
238243 }
239244
240- & :hover & __controls {
245+ & :hover & __controls ,
246+ & :has (.region-context-menu_open ) & __controls {
241247 display : flex ;
242248
243249 .outliner-item__control_type_lock {
244250 display : flex ;
245251 }
252+
253+ .region-context-menu button {
254+ opacity : 1 ;
255+ }
246256 }
247257}
248258
You can’t perform that action at this time.
0 commit comments