Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
9078ced1
Commit
9078ced1
authored
Jan 17, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change colors for menu in dark mode; fix select focus color
parent
77e0febf
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
86 additions
and
1 deletion
+86
-1
Menu.ts
theme/components/Menu.ts
+51
-0
Popover.ts
theme/components/Popover.ts
+1
-0
Select.ts
theme/components/Select.ts
+30
-0
index.ts
theme/components/index.ts
+4
-0
LogTopic.tsx
ui/shared/logs/LogTopic.tsx
+0
-1
No files found.
theme/components/Menu.ts
0 → 100644
View file @
9078ced1
import
{
menuAnatomy
as
parts
}
from
'
@chakra-ui/anatomy
'
;
import
{
createMultiStyleConfigHelpers
,
cssVar
,
defineStyle
,
}
from
'
@chakra-ui/styled-system
'
;
const
{
defineMultiStyleConfig
,
definePartsStyle
}
=
createMultiStyleConfigHelpers
(
parts
.
keys
);
const
$bg
=
cssVar
(
'
menu-bg
'
);
const
$shadow
=
cssVar
(
'
menu-shadow
'
);
const
baseStyleList
=
defineStyle
({
[
$bg
.
variable
]:
'
#fff
'
,
[
$shadow
.
variable
]:
'
shadows.2xl
'
,
_dark
:
{
[
$bg
.
variable
]:
'
colors.gray.900
'
,
[
$shadow
.
variable
]:
'
shadows.dark-lg
'
,
},
borderWidth
:
'
0
'
,
bg
:
$bg
.
reference
,
boxShadow
:
$shadow
.
reference
,
});
const
baseStyleItem
=
defineStyle
({
_focus
:
{
[
$bg
.
variable
]:
'
colors.blue.50
'
,
_dark
:
{
[
$bg
.
variable
]:
'
colors.gray.800
'
,
},
},
_hover
:
{
[
$bg
.
variable
]:
'
colors.blue.50
'
,
_dark
:
{
[
$bg
.
variable
]:
'
colors.gray.800
'
,
},
},
bg
:
$bg
.
reference
,
});
const
baseStyle
=
definePartsStyle
({
list
:
baseStyleList
,
item
:
baseStyleItem
,
});
const
Menu
=
defineMultiStyleConfig
({
baseStyle
,
});
export
default
Menu
;
theme/components/Popover.ts
View file @
9078ced1
...
...
@@ -29,6 +29,7 @@ const baseStyleContent = defineStyle((props) => {
_dark
:
{
[
$popperBg
.
variable
]:
`colors.gray.900`
,
[
$arrowShadowColor
.
variable
]:
`colors.whiteAlpha.300`
,
boxShadow
:
'
dark-lg
'
,
},
width
:
'
xs
'
,
border
:
'
none
'
,
...
...
theme/components/Select.ts
0 → 100644
View file @
9078ced1
import
{
selectAnatomy
as
parts
}
from
'
@chakra-ui/anatomy
'
;
import
{
createMultiStyleConfigHelpers
,
}
from
'
@chakra-ui/styled-system
'
;
import
Input
from
'
./Input
'
;
const
{
defineMultiStyleConfig
,
definePartsStyle
}
=
createMultiStyleConfigHelpers
(
parts
.
keys
);
const
variantOutline
=
definePartsStyle
((
props
)
=>
{
return
{
field
:
{
...
Input
.
variants
?.
outline
(
props
).
field
,
_focusVisible
:
{
borderColor
:
Input
.
variants
?.
outline
(
props
).
field
.
borderColor
,
boxShadow
:
'
none
'
,
},
},
};
});
const
Select
=
defineMultiStyleConfig
({
variants
:
{
...
Input
.
variants
,
outline
:
variantOutline
,
},
});
export
default
Select
;
theme/components/index.ts
View file @
9078ced1
...
...
@@ -8,9 +8,11 @@ import FormLabel from './FormLabel';
import
Heading
from
'
./Heading
'
;
import
Input
from
'
./Input
'
;
import
Link
from
'
./Link
'
;
import
Menu
from
'
./Menu
'
;
import
Modal
from
'
./Modal
'
;
import
Popover
from
'
./Popover
'
;
import
Radio
from
'
./Radio
'
;
import
Select
from
'
./Select
'
;
import
Skeleton
from
'
./Skeleton
'
;
import
Spinner
from
'
./Spinner
'
;
import
Switch
from
'
./Switch
'
;
...
...
@@ -32,9 +34,11 @@ const components = {
Form
,
FormLabel
,
Link
,
Menu
,
Modal
,
Popover
,
Radio
,
Select
,
Skeleton
,
Spinner
,
Switch
,
...
...
ui/shared/logs/LogTopic.tsx
View file @
9078ced1
...
...
@@ -70,7 +70,6 @@ const LogTopic = ({ hex, index }: Props) => {
borderRadius=
"base"
value=
{
selectedDataType
}
onChange=
{
handleSelectChange
}
focusBorderColor=
"none"
mr=
{
3
}
flexShrink=
{
0
}
w=
"auto"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment