This repository was archived by the owner on Feb 19, 2025. It is now read-only.
File tree 3 files changed +14
-8
lines changed
3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 6
6
IconLogOut ,
7
7
IconChevronDown ,
8
8
IconChevronRight ,
9
+ IconHardDrive ,
9
10
} from './../../index'
10
11
import Typography from '../Typography'
11
12
@@ -104,7 +105,7 @@ export const DefaultFull = (args: any) => {
104
105
</ Dropdown . Item > ,
105
106
] }
106
107
>
107
- < Dropdown . TriggerItem >
108
+ < Dropdown . TriggerItem icon = { < IconHardDrive /> } >
108
109
Open sub menu{ ' ' }
109
110
< Dropdown . RightSlot >
110
111
< IconChevronRight size = { 14 } />
@@ -117,7 +118,7 @@ export const DefaultFull = (args: any) => {
117
118
</ Dropdown . Item > ,
118
119
] }
119
120
>
120
- < Button as = "span" type = "secondary " iconRight = { < IconChevronDown /> } >
121
+ < Button as = "span" type = "default " iconRight = { < IconChevronDown /> } >
121
122
Click for dropdown
122
123
</ Button >
123
124
</ Dropdown >
Original file line number Diff line number Diff line change @@ -50,9 +50,7 @@ function Dropdown({
50
50
return (
51
51
< RadixDropdown . Root onOpenChange = { onOpenChange } open = { open } >
52
52
{ isNested ? (
53
- < RadixDropdown . TriggerItem
54
- className = { [ __styles . item , __styles . item_nested ] . join ( ' ' ) }
55
- >
53
+ < RadixDropdown . TriggerItem className = { [ __styles . item_nested ] . join ( ' ' ) } >
56
54
{ children }
57
55
</ RadixDropdown . TriggerItem >
58
56
) : (
@@ -118,7 +116,7 @@ export function Item({
118
116
export function TriggerItem ( { children, icon, disabled } : ItemProps ) {
119
117
let __styles = styleHandler ( 'dropdown' )
120
118
return (
121
- < div className = { __styles . trigger } >
119
+ < div className = { __styles . item } >
122
120
{ icon && icon }
123
121
< span > { children } </ span >
124
122
</ div >
Original file line number Diff line number Diff line change @@ -1166,16 +1166,23 @@ export default {
1166
1166
dropdown : {
1167
1167
// root:
1168
1168
trigger : `
1169
+ flex
1169
1170
border-none
1170
1171
rounded
1171
1172
bg-transparent p-0
1172
- data-open:ring-2
1173
- data-open:ring-scale-900
1173
+
1174
+ outline-none
1175
+ outline-offset-1
1176
+ transition-all
1177
+ focus:outline-4
1178
+ focus:outline-brand-700
1174
1179
` ,
1175
1180
item_nested : `
1176
1181
border-none
1177
1182
data-open:bg-scale-300 dark:data-open:bg-scale-500
1178
1183
data-open:text-scale-1200
1184
+ focus:outline-none
1185
+ focus:text-scale-1200
1179
1186
` ,
1180
1187
content : `
1181
1188
bg-scale-100 dark:bg-scale-300
You can’t perform that action at this time.
0 commit comments