Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
12e3424
[CLOV-1326] [BpkSegmentedControl] Make BpkSegmentedControl Composable…
Supremeyh Mar 4, 2026
ba16816
update package-lock
Supremeyh Mar 4, 2026
5cb9c05
checking isValidElement and onKeyDown
Supremeyh Mar 4, 2026
1a25a66
align storybook examples
Supremeyh Mar 5, 2026
053c0df
onChange and label required
Supremeyh Mar 5, 2026
5fff661
update examples
Supremeyh Mar 5, 2026
8de8f46
Merge branch 'main' into 001-composable-segmented-control
Supremeyh Mar 5, 2026
8377b42
update default background and icon fillcolor
Supremeyh Mar 5, 2026
ae753cc
remove redundant comment restating wrapAround function name
Supremeyh Mar 5, 2026
3f38a7a
concise comments
Supremeyh Mar 5, 2026
abd89de
descriptive identifiers
Supremeyh Mar 5, 2026
42cfdc0
replace svg with icon
Supremeyh Mar 5, 2026
d852f03
Merge branch 'main' into 001-composable-segmented-control
RichardSyq Mar 6, 2026
799e042
address comments
Supremeyh Mar 8, 2026
1fac602
Merge branch '001-composable-segmented-control' of github.com:Skyscan…
Supremeyh Mar 8, 2026
1165df9
style fix
Supremeyh Mar 8, 2026
efdc028
add ComplexContentWithIcon example
Supremeyh Mar 9, 2026
39c73c9
remove spec
Supremeyh Mar 9, 2026
2ea9ca0
update style
Supremeyh Mar 10, 2026
72895db
remove disable state
Supremeyh Mar 10, 2026
207815a
add Complex content with button in slot
Supremeyh Mar 10, 2026
d47b246
update padding and focus indicator
Supremeyh Mar 11, 2026
716ab83
themeable property mixin
Supremeyh Mar 11, 2026
64b9be2
SegmentGroup level align
Supremeyh Mar 12, 2026
3980380
composability as Ark
Supremeyh Mar 13, 2026
1fe0bdf
Merge branch 'main' into 001-composable-segmented-control
Supremeyh Mar 13, 2026
2f3e0c1
Add Indicator
Supremeyh Mar 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,12 @@
"Slider.Root", // allowed for styling to be passed to radix-ui component
"Slider.Track", // allowed for styling to be passed to radix-ui component
"Slider.Range", // allowed for styling to be passed to radix-ui component
"Slider.Thumb" // allowed for styling to be passed to radix-ui component
"Slider.Thumb", // allowed for styling to be passed to radix-ui component
"SegmentGroup.Root", // allowed for styling to be passed to ark-ui component
"SegmentGroup.Indicator", // allowed for styling to be passed to ark-ui component
"SegmentGroup.Item", // allowed for styling to be passed to ark-ui component
"SegmentGroup.ItemControl", // allowed for styling to be passed to ark-ui component
"SegmentGroup.ItemText" // allowed for styling to be passed to ark-ui component
]
}
]
Expand Down
85 changes: 85 additions & 0 deletions examples/bpk-component-segmented-control-v2/examples.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
/*
* Backpack - Skyscanner's Design System
*
* Copyright 2016 Skyscanner Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

@use '../../packages/bpk-mixins/tokens';
@use '../../packages/bpk-mixins/utils';

.bpk-component-segmented-control-stories__custom-button {
min-width: 0;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}

.bpk-component-segmented-control-stories__canvas-default-wrapper {
padding: tokens.bpk-spacing-xl();
background-color: tokens.$bpk-canvas-day;
}

.bpk-component-segmented-control-stories__canvas-contrast-wrapper {
padding: tokens.bpk-spacing-xl();
background-color: tokens.$bpk-canvas-contrast-day;
}

.bpk-component-segmented-control-stories__surface-contrast-wrapper {
padding: tokens.bpk-spacing-xl();
background-color: tokens.$bpk-surface-contrast-day;
}

.bpk-component-segmented-control-stories__canvas-contrast-demo {
padding: tokens.bpk-spacing-base();
background-color: tokens.$bpk-canvas-contrast-day;
}

.bpk-component-segmented-control-stories__surface-contrast-demo {
padding: tokens.bpk-spacing-base();
background-color: tokens.$bpk-surface-contrast-day;
}

.bpk-component-segmented-control-stories__complex {
// stylelint-disable-next-line selector-attribute
[data-part='item-text'] {
padding: tokens.bpk-spacing-md() tokens.bpk-spacing-base();
justify-content: flex-start;
}
}

.bpk-component-segmented-control-stories__sort-btn {
pointer-events: auto;

&:focus-visible {
outline: none;
}

// stylelint-disable-next-line selector-attribute
[data-state='checked'] & {
color: tokens.$bpk-text-on-dark-day;

@include utils.bpk-hover {
color: tokens.$bpk-text-on-dark-day;
}

// stylelint-disable-next-line selector-max-compound-selectors
span {
background-image: linear-gradient(
tokens.$bpk-text-on-dark-day,
tokens.$bpk-text-on-dark-day
);
}
}
}
Loading
Loading