({ isMode, disabled, theme }: BaseProps)
| 148 | }; |
| 149 | |
| 150 | const getButtonBorderColor = ({ isMode, disabled, theme }: BaseProps) => { |
| 151 | if (theme.isV3) { |
| 152 | if (disabled && isMode('outlined')) { |
| 153 | return theme.colors.surfaceDisabled; |
| 154 | } |
| 155 | |
| 156 | if (isMode('outlined')) { |
| 157 | return theme.colors.outline; |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | if (isMode('outlined')) { |
| 162 | return color(theme.dark ? white : black) |
| 163 | .alpha(0.29) |
| 164 | .rgb() |
| 165 | .string(); |
| 166 | } |
| 167 | |
| 168 | return 'transparent'; |
| 169 | }; |
| 170 | |
| 171 | const getButtonBorderWidth = ({ |
| 172 | isMode, |
no test coverage detected
searching dependent graphs…