New: Improve styles when prefixes / suffixes are present (fixes #591)#592
Conversation
kirsty-hames
left a comment
There was a problem hiding this comment.
Works as expected thanks 👍
For smaller screen widths, is it worth including a media query to hide the suffix/prefix by default as I imagine most use cases will overlap. For example:
.slider__scale-step-prefix,
.slider__scale-step-suffix {
@media (max-width: @device-width-medium) {
display: none;
}
}
@kirsty-hames Yep, this makes sense as there would often not be enough available space on mobile.
I've added a new variable called |
Works as expected thanks @swashbuck 👍 |
|
🎉 This PR is included in version 9.34.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |

Fixes #591
Depends on adaptlearning/adapt-contrib-slider#234
New
.has-scale-step-prefixor.has-scale-step-suffixis present, scale labels switch to a lozenge (pill) shapeKnown issues
The recommended fix is to add horizontal padding or margin to .slider__widget (or scope it to .slider__widget.has-scale-step-prefix / .has-scale-step-suffix) in a course-specific or custom theme override.
Testing
scaleStepPrefix(e.g.$) and/orscaleStepSuffix(e.g.days)Posted via collaboration with Claude Code