-
Notifications
You must be signed in to change notification settings - Fork 13.4k
fix(range): update tick styling and border radius #31080
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
Changes from all commits
86e3459
5ae827e
05d635e
4763043
8ac3957
58b4383
c5fc6f7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,30 +75,35 @@ | |
| @include margin(null, null, calc(globals.$ion-space-200 + globals.$ion-font-size-300), null); | ||
| } | ||
|
|
||
| .range-bar.range-bar-active { | ||
| bottom: 0; | ||
| .range-bar { | ||
| &.has-ticks { | ||
| @include border-radius(0); | ||
| } | ||
|
|
||
| width: auto; | ||
| &.range-bar-active { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please revert this to be |
||
| bottom: 0; | ||
|
|
||
| background: var(--bar-background-active); | ||
| width: auto; | ||
|
|
||
| &.has-ticks { | ||
| @include border-radius(0); | ||
| @include margin(null, calc(-1 * globals.$ion-scale-100 * 0.5), null, calc(-1 * globals.$ion-scale-100 * 0.5)); | ||
| background: var(--bar-background-active); | ||
|
|
||
| &.has-ticks { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please revert this to be |
||
| @include margin(null, calc(-1 * globals.$ion-scale-100 * 0.5), null, calc(-1 * globals.$ion-scale-100 * 0.5)); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| .range-tick { | ||
| @include margin-horizontal(calc(globals.$ion-scale-100 * -0.5), null); | ||
| @include border-radius(globals.$ion-border-radius-0); | ||
| @include border-radius(globals.$ion-border-radius-400); | ||
|
|
||
| position: absolute; | ||
| top: calc((var(--height) * 0.5) - (globals.$ion-scale-300 * 0.5)); | ||
| top: calc((var(--height) * 0.5) - (globals.$ion-scale-400 * 0.5)); | ||
|
|
||
| width: globals.$ion-scale-100; | ||
| height: globals.$ion-scale-300; | ||
| width: globals.$ion-scale-050; | ||
| height: globals.$ion-scale-400; | ||
|
|
||
| background: globals.$ion-primitives-neutral-100; | ||
| background: var(--bar-background); | ||
| pointer-events: none; | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -914,7 +914,14 @@ export class Range implements ComponentInterface { | |
| ))} | ||
|
|
||
| <div class="range-bar-container"> | ||
| <div class="range-bar" role="presentation" part="bar" /> | ||
| <div | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are these changes being applied? These are already in
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The permalink you attached refers to the |
||
| class={{ | ||
| 'range-bar': true, | ||
| 'has-ticks': ticks.length > 0, | ||
| }} | ||
| role="presentation" | ||
| part="bar" | ||
| /> | ||
| <div | ||
| class={{ | ||
| 'range-bar': true, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this to be
.range-bar.has-ticks. Nested styles like these can get hard to read.