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

[Feature] Expander facelift #704

Merged
merged 3 commits into from
Apr 5, 2023
Merged

Conversation

riitasointi
Copy link
Collaborator

Description

This PR contains a visual update for the <Expander> component. Biggest changes concern the open/close button, which is now implemented using flexbox instead of absolute positioning.

Also removed this CSS line from ExpanderContent: transform: scaleY(0). The same rule is already applied in the fi-expander_content-anim animation, and removing it from ExpanderContent's default state seemed to fix a Safari print bug described here: https://jira.dvv.fi/browse/SFIDS-673

Motivation and Context

Expander's appearance was updated in Figma in order to better pop out from backgrounds and provide visual clues regarding click targets (hover styles)

How Has This Been Tested?

Styleguidist, Chrome, Safari

Screenshots:

Screenshot 2023-03-30 at 14 16 00

Release notes

Expander & ExpanderGroup

  • Update visual style: Remove shadows, add border, add hover styles

@riitasointi riitasointi merged commit 2fffdee into develop Apr 5, 2023
@riitasointi riitasointi deleted the feature/expander-facelift branch April 5, 2023 09:11
@jenkrisu jenkrisu mentioned this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants