Skip to content

Unify styling of file upload buttons with drop zone #65333

Open
@mirka

Description

Related to #62743

What problem does this address?

I noticed we have two "file upload" buttons that have different custom styling for no apparent reason. This is non-ideal for both code maintainability and UX.

Font upload

CleanShot.2024-09-14.at.02.06.43.mp4

Set featured image

CleanShot.2024-09-14.at.02.14.07.mp4

What is your proposed solution?

Possible solutions include:

  • Use the standard "secondary" Button variant.

  • Introduce a new Button variant with guidance that it should be used for file upload buttons, and use that consistently.

  • Introduce a new UI pattern that denotes a "file upload button with drop zone". For reference, here is another one of these that appears in a block placeholder:

    Featured image block placeholder

cc @WordPress/gutenberg-design

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

    Design SystemIssues related to the system of combining components according to best practices.Needs Design FeedbackNeeds general design feedback.[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions