Skip to content

Fix flex-wrap property of FormGroup according to 'direction' property #1720

Open
@yangwooseong

Description

Summary

아래 이미지처럼 FormGroup을 사용해서 TextField 여러 개를 가로 배치할 때, flex-wrap 속성을 오버라이딩 해야하는 불편함이 있습니다.

image

Description

FormGroup 내부에서 direction 에 관계없이 flex-wrap: wrap 으로 주고 있는 것이 원인입니다. FormGroupdirection 속성에 따라서 flex-wrap 속성을 다르게 주는 것이 좋아보입니다.

import { styled } from '~/src/foundation'
import { AlphaStack } from '~/src/components/AlphaStack'
export const Stack = styled(AlphaStack)`
flex-wrap: wrap;
`

Tasks

Preview Give feedback

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementIssues or PR related to making existing features better

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions