Closed yoezlem closed 2 weeks ago
copied from Mario's comment on the main ticket: " make this thing just an element with two slots for frontside and backside, reducing it's logic to only "turning itself". Examples for that are e. g. https://github.com/jeffreyquan/flip-card-wc / https://codepen.io/jeffreyquan/pen/ZEByKRL or maybe https://www.webcomponents.org/element/@adaws/flip-card – in Figma we then inform that this component consists of two sides and we show all current implementations as examples."
@Vahid1919
I just realized, that my comment was not taken into consideration:
@coraliefeil realized as well, that there might be quite some similarities between media-teaser and the content of the flipcard: https://github.com/solid-design-system/solid/issues/299#issuecomment-2033747295
Is there a reason, why this was not done in a more generic way by just providing two slots and make it independent from styling? (Unfortunately I was not part of the refinement.)
User Story
As a user of the Solid Design System, I want to utilize a Flashcard component with flip animation to add dynamic and interactive content to pages, providing a visually engaging way to present and interact with information.
Documentation
https://www.figma.com/file/JZZL5QPXQVKVGt4CHBlNlz/Flashcard?type=design&node-id=1301-7360&mode=design&t=eaEgzwqpgma861CK-0
Hand-off
https://www.figma.com/file/JZZL5QPXQVKVGt4CHBlNlz/Flashcard?type=design&node-id=6-4&mode=design&t=eaEgzwqpgma861CK-0
Components detailed requirements
Props
frontVariant
primary
/primary-100
/gradient light-top
/gradient light-bottom
/gradient dark-top
/gradient dark-bottom
primary
backVariant
primary
/primary-100
/gradient light-top
/gradient light-bottom
/gradient dark-top
/gradient dark-bottom
primary
ratio
3:4
/16:9
3:4
CSS-Properties
name
- descriptionParts (besides the shoelace parts)
parts
story does not work out of the box, do not spend more effort on it but open a bug ticket to tackle it later.Slots
front
- for the content on the front side of the flashcardback
- for the content of the back side of the flashcardmediaFront
- An optional media slot which can be as a background. Dependent from gradient variant.mediaBack
- An optional media slot which can be as a background. Dependent from gradient variant.Stories (besides the
default
story)Variant
- (description)Ratio
- (description)Samples
[ ]
Clickable Flashcard
- Only it is necessary that is allowed to do it semantically (accessible way).Methods
flip-front
flip-back
Events
sd-flip-front
sd-flip-back
Open Questions towards design
Technical Information
summary
anddetails
from accordion.DoR
DoD
DoR
DoD
feature
branch