Skip to content
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

Examples - Choose viewport #354

Closed
2 tasks done
Tracked by #348
MekalaNagarajan-Centrica opened this issue Feb 1, 2024 · 1 comment
Closed
2 tasks done
Tracked by #348

Examples - Choose viewport #354

MekalaNagarajan-Centrica opened this issue Feb 1, 2024 · 1 comment
Assignees
Labels
Type: Documentation Improvements or additions to documentation

Comments

@MekalaNagarajan-Centrica
Copy link
Contributor

MekalaNagarajan-Centrica commented Feb 1, 2024

Outcome

To be able to switch between different viewports to view the example rendered for a component.

Scope

  • Add Options to select the viewport (Radio / Slider / Select)
  • Layout and styling configuration for the viewport.
@MekalaNagarajan-Centrica
Copy link
Contributor Author

I added the radio options within the current component renderer and mapped the changed values to css styling. This seems to work in Astro page but not in Starlight page.

The reason being Astro page is dynamic and rendered from server on request whereas Starlight page is static and generated during build phase itself.

@MekalaNagarajan-Centrica MekalaNagarajan-Centrica added the Type: Documentation Improvements or additions to documentation label Feb 1, 2024
@PtitBen PtitBen closed this as completed Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants