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
{{ message }}
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
It expects element dimensions to be computed on foundation init. This is problematic because on the server, the element dimensions cannot be measured. This prevents us from pre-rendering the initial value of the slider.
Actual behavior
MDC-slider cannot be pre-rendered.
Expected behavior
MDC-slider can be pre-rendered on the server.
Your Environment:
Software
Version(s)
MDC Web
v4.0.0-alpha.0
Browser
Chrome
Operating System
Windows
Additional context
We need this to be able to provide a slider implementation for Angular components based on the MDC slider foundation.
Possible solution
Ideally the mdc-slider foundation would have an adapter method for retrieving the style property names (see bullet point 1). And to solve the second bullet point, the slider would not depend on element measurements to move the thumb (i.e. just using percentage to move the thumb). Element measurements are only needed for determining the value from a pointer click.