Skip to content

Commit

Permalink
chore: Apply bold styles on the segment itself
Browse files Browse the repository at this point in the history
  • Loading branch information
hetunandu committed Dec 19, 2024
1 parent cec1885 commit a94e072
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ export const StyledSegment = styled.span`
& > * {
color: var(--ads-v2-colors-control-segment-value-default-fg);
}
&[data-selected="true"] {
span {
font-weight: var(--ads-v2-font-weight-bold);
}
}
`;

export const StyledControlContainer = styled.div`
Expand Down Expand Up @@ -81,6 +87,7 @@ export const StyledControlContainer = styled.div`
/* Select all segments which is not a selected and last child */
/* seperator */
&:not(:hover):not(:last-child):not([data-selected="true"]):not(
:has(+ [data-selected="true"])
):after {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,5 @@ import { Flex } from "../../../Flex";
export const Container = styled(Flex)`
.editor-pane-segment-control {
max-width: 247px;
.ads-v2-segmented-control__segments-container-segment {
&[data-selected="true"] {
span {
font-weight: var(--ads-v2-font-weight-bold);
}
}
}
}
`;

0 comments on commit a94e072

Please sign in to comment.