You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using ion-range with snaps set to true, ticks are displayed; however, when using the snaps attribute the display of ticks may not always be desired.
Describe Preferred Solution
Add a ticks attribute (default: true) to ion-range to show/hide ticks when snaps is set to true.
Describe Alternatives
Because this is styled in shadow DOM, there really isn't a good way to override the display of these elements from outside the component aside from setting a CSS variable but that only results in hiding the ticks. The solution above prevents the ticks from being rendered in the first place, resulting in a cleaner DOM.
Related Code
...
Additional Context
PR forthcoming.
The text was updated successfully, but these errors were encountered:
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Feature Request
Ionic version:
Describe the Feature Request
When using
ion-range
withsnaps
set totrue
, ticks are displayed; however, when using thesnaps
attribute the display of ticks may not always be desired.Describe Preferred Solution
Add a
ticks
attribute (default:true
) toion-range
to show/hide ticks whensnaps
is set totrue
.Describe Alternatives
Because this is styled in shadow DOM, there really isn't a good way to override the display of these elements from outside the component aside from setting a CSS variable but that only results in hiding the ticks. The solution above prevents the ticks from being rendered in the first place, resulting in a cleaner DOM.
Related Code
...
Additional Context
PR forthcoming.
The text was updated successfully, but these errors were encountered: