cloudscape-design / demos

Cloudscape Design System demos
https://cloudscape.design/
MIT No Attribution
82 stars 52 forks source link

[Bug]: Build from source code don't show the light/dark mode in navigation bar #132

Closed koiker closed 6 months ago

koiker commented 7 months ago

Browser

Chrome

Package version

v3.0.0

React version

v20.10.0

Description

Cloning the repo and following the instructions to build and start the demos. Opening the local server and opening the form.html that is the single page demo. The navigation bar doesn't have the light mode | dark mode as the Cloudscape website shows. The source-code doesn't reflect the demo running on Cloudscape website.

Code of Conduct

jperals commented 7 months ago

Hi Rafael,

This is true, the top bar toggles are added only in the Cloudscape website and they are not part of this repository code. Can you describe what you are trying to do and why you would need this feature?

koiker commented 7 months ago

Hey Joan, I was just looking for a code snippet of the toggle function. I built a toggle function using the navigation menu and the JS helpers provided in the documentation. I asked about the code because the demos show the functionality, but when I cloned the source and tried to run, I couldn't find the code snippet for it.

jperals commented 6 months ago

I'll close this as the question was resolved offline. Feel free to open a new ticket if you need further help.