Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(VTabs): port to v3 #14746

Merged
merged 23 commits into from Mar 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
2771d92
feat(VTabs): update to v3
nekosaur Feb 16, 2022
4999862
wip: added overflow and touch features
nekosaur Feb 19, 2022
5d2a95b
chore(VSlideGroup): template code clean-up and improve types
johnleider Feb 21, 2022
400e33b
refactor(VTabs): minor code clean-up
johnleider Feb 22, 2022
e61f583
feat(VTabs): add density and align-with-title support
johnleider Feb 22, 2022
7de69f0
Merge branch 'next' into feat/v3-tabs
johnleider Feb 22, 2022
ca6fc0f
chore(VTabs): change export code
johnleider Feb 22, 2022
a8ac49b
feat: replace slider with a static element
KaelWD Feb 24, 2022
80034ed
chore: remove commented code
KaelWD Feb 28, 2022
d288891
refactor: use VSlideGroup directly
KaelWD Feb 28, 2022
a4a6563
Merge branch 'next' into feat/v3-tabs
KaelWD Mar 2, 2022
15976d7
feat(group): select() without arguments toggles
KaelWD Mar 2, 2022
33a024a
refactor: remove useSlideGroup composable
KaelWD Mar 2, 2022
bbbfb74
feat: add more tabs props back
KaelWD Mar 2, 2022
5a328ea
fix(VSlideGroup): remove implicit white-space inheritence
johnleider Mar 2, 2022
e884978
Merge branch 'next' into feat/v3-tabs
johnleider Mar 2, 2022
84ef9a7
feat(VTabs): implement missing props
KaelWD Mar 3, 2022
7f75aa8
refactor: remove unused sass variables
KaelWD Mar 3, 2022
ed52622
refactor: remove unused styles
KaelWD Mar 3, 2022
51f0d9a
feat(VSlideGroup): implement keyboard navigation
KaelWD Mar 3, 2022
4884f7b
fix(VTabs): add vertical styles
KaelWD Mar 3, 2022
a5e7b23
fix(VTab): justify self start when using vertical tabs
johnleider Mar 3, 2022
f1512ce
chore(VSlideGroup): code clean-up
johnleider Mar 3, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
42 changes: 21 additions & 21 deletions packages/vuetify/src/components/VSlideGroup/VSlideGroup.sass
@@ -1,23 +1,14 @@
// Imports
@import './_variables.scss'
@forward './variables'
@use 'sass:math'
@use 'sass:map'
@use '../../styles/settings'
@use '../../styles/tools'
@use './variables' as *

// Block
.v-slide-group
display: flex

&:not(.v-slide-group--has-affixes)
> .v-slide-group__prev,
> .v-slide-group__next
display: none

// Needed increased specificity
// to overwrite v-tabs pointer
// replacement
&.v-item-group
> .v-slide-group__next,
> .v-slide-group__prev
cursor: pointer

.v-slide-item
display: inline-flex
flex: 0 1 auto
Expand All @@ -30,22 +21,31 @@
flex: 0 1 $slide-group-prev-basis
justify-content: center
min-width: $slide-group-prev-basis
cursor: pointer

&--disabled
pointer-events: none
opacity: var(--v-disabled-opacity)

.v-slide-group__content
display: flex
flex: 1 0 auto
position: relative
transition: $primary-transition
transition: 0.2s all settings.$standard-easing
white-space: nowrap

.v-slide-group__wrapper
> *
white-space: initial

.v-slide-group__container
contain: content
display: flex
flex: 1 1 auto
overflow: hidden

// Modifiers
.v-slide-group__next,
.v-slide-group__prev
&--disabled
pointer-events: none
.v-slide-group--vertical
&,
.v-slide-group__container,
.v-slide-group__content
flex-direction: column