Allow to select a style option on Link fields

Created on 13 February 2019, over 5 years ago
Updated 30 January 2023, over 1 year ago

Problem/Motivation

The current formatter for Link field does not provide a style option. This option avoids us creating multiple twig files for each view modes. In certain cases, designers can even ask to style a field differently for the same view mode in an other content type.

Proposed resolution

- Add an option in the formatter to provide this value.
- Add an option in the widget to provide this value in content editing form.
- Add a form to manage Link settings.

Remaining tasks

- Allow to select which entity types should be concerned by the field widget update?

User interface changes

- A new form for Link settings
- A new select field in the Manage display tab under the format settings
- A new select field in the content editing form on each Link field

API changes

Data model changes

Release notes snippet

Feature request
Status

Needs work

Version

9.5

Component
Link 

Last updated 3 days ago

Created by

🇫🇷France Heisen-blue France

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

Production build 0.71.5 2024