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

Add Link button components #2655

Merged
merged 5 commits into from
Dec 28, 2023
Merged

Add Link button components #2655

merged 5 commits into from
Dec 28, 2023

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Dec 21, 2023

What is this pull request for?

Introduces to new components used to link and unlink ingredients (pictures, text, link)

This fixes a bug introduced with the recent changes to the icon buttons and Shoelace tooltips.
The current implementation was relying to heavy on external DOM manipulation and needed
a special HTML structure.

The new components are self contained and have a API that the link dialog can use to place
links.

Notable changes

This also adds submit capabilities to the link dialog forms, so that they can now be submitted by enter key as well.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

@tvdeyen tvdeyen self-assigned this Dec 21, 2023
@tvdeyen tvdeyen marked this pull request as ready for review December 21, 2023 18:28
@tvdeyen tvdeyen requested a review from a team December 21, 2023 18:28
@tvdeyen tvdeyen added this to the 7.1 milestone Dec 21, 2023
These handle all the linking, unlinking as well as value writing
and reading that the both "Link" and "Unlink" buttons do in one
place, instead of shattered all over the place.
This makes the form behave like every other form and makes it
more accessible.
Symbols should be used to `send` or `define_method`s.
@tvdeyen tvdeyen merged commit 07c2095 into main Dec 28, 2023
56 checks passed
@tvdeyen tvdeyen deleted the link-buttons branch December 28, 2023 11:38
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.

1 participant