Skip to content

Commit

Permalink
Add "Log Level" label as a Chip to LogLevelSelect component.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Sep 26, 2024
1 parent 0e36cd9 commit c25499f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
display: flex;
gap: 2px;
}

.log-level-select-render-value-box-label {
background-color: initial !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import React, {
import {SelectValue} from "@mui/base/useSelect";
import {
Box,
Chip,
IconButton,
MenuItem,
Option,
Expand Down Expand Up @@ -37,6 +38,12 @@ const LogLevelSelect = () => {

const handleRenderValue = (selected: SelectValue<SelectOption<LOG_LEVEL>, true>) => (
<Box className={"log-level-select-render-value-box"}>
<Chip
className={"log-level-select-render-value-box-label"}
variant={"soft"}
>
Log Level
</Chip>
{selected.map((selectedOption) => (
<LogLevelChip
key={selectedOption.value}
Expand Down

0 comments on commit c25499f

Please sign in to comment.