feat(LightBox): add LightBox component #972
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Documentation
Description
With the Lightbox component, we want to enable users of our design system to open images or PDFs in full size within the same tab.
Design
The Lightbox consists of a backdrop that is significantly darker than that of a modal, allowing the image or PDF to stand out more prominently. It includes an Action Group, which allows developers to add additional actions. A close button is always present. This Action Group can be supplemented with further options, such as Download or Print. Due to the dark background, the Light-Soft variant was chosen for the buttons. The image should always occupy 90% of the viewport, with the buttons positioned to the right of the image.
Token