Skip to content

Commit

Permalink
fix(treeview): xs size variant (#14157)
Browse files Browse the repository at this point in the history
Co-authored-by: Guilherme Datilio Ribeiro <guilhermedatilio@gmail.com>
  • Loading branch information
alisonjoseph and guidari committed Jul 11, 2023
1 parent ab058a3 commit d6b9b7c
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions packages/styles/scss/components/treeview/_treeview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@
}
}

.cds--tree-node:not(.cds--tree-parent-node) .#{$prefix}--tree-node__label {
.#{$prefix}--tree-node:not(.#{$prefix}--tree-parent-node)
.#{$prefix}--tree-node__label {
// (min-height 32px - single line text height 18px) / 2 = 7px
padding-top: rem(7px);
padding-bottom: rem(7px);
Expand Down Expand Up @@ -216,9 +217,18 @@
}
}

// xs size variant
.#{$prefix}--tree--xs .#{$prefix}--tree-node__label {
min-height: rem(24px);
padding-top: rem(4px);
padding-bottom: rem(4px);
}

.#{$prefix}--tree--xs
.#{$prefix}--tree-node:not(.#{$prefix}--tree-parent-node)
.#{$prefix}--tree-node__label {
padding: 0;
}

.#{$prefix}--tree--xs .#{$prefix}--tree-parent-node__toggle {
margin-top: 0;
}
}

0 comments on commit d6b9b7c

Please sign in to comment.