Skip to content

Add "None" as a link type option #8

@engram-design

Description

@engram-design

At the moment, for a new element the field will auto-create a new link block with the set default link type. That might be URL, Entry, etc - it'll just be empty. There's no issue with content validation, you'll just end up with an empty link type.

For clarity, it might be better to allow users to use (and set the default) to a "None" option.

What's challenging about this is the UI - how to make it look like it's an empty field without making it look "broken".

Option 1

image

There's a part of me that feels this looks "broken", as there are no options available. You can also click the "New Window" and settings icons, which isn't great if you haven't picked a type yet.

Option 2

image

We remove the block layout altogether and ask the user to pick a new link type. This is the same behaviour as a multi-link fields. The downside to this is it makes the default link type essentially useless.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions