Responsive layout with Sections #9
jonathankretzmer
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think it would be a great enhancement to allow for different progress indicators depending on the form factor of the browser viewing it.
For example, a create a screen that has a Section component, with a vertical progress indicator works really well. However, for mobile clients under ~765pixels, the Section component will change to a single-column layout where the vertical progress indicator starts looking quite silly. At this point, it may be worthwhile to swap to one of the other progress indicators automatically.
Notes:
import FORM_FACTOR from '@salesforce/client/formFactor';
but it always returnedLarge
. So we will probably need to use thewindow
object to determine innerWidth as the best proxy. This obviously doesn't take into account the actual available width of the Flow Screen within the host (ExperienceCloud, etc.). How would we be able to check the width of the Flow screen?Beta Was this translation helpful? Give feedback.
All reactions