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

Use title attribute for link_to_dialog and delete_button tooltip #2688

Merged
merged 6 commits into from
Jan 15, 2024

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Jan 14, 2024

What is this pull request for?

If a title is passed as html_options to link_to_dialog and delete_button helpers we use that to create a sl-tooltip.

This way we can progressively enhance Alchemy extensions and modules to use the new UI Tooltips instead of titles but keep downwards compatibility.

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

If a `title` is passed as `html_options` to `link_to_dialog` helper
we use that to create a `sl-tooltip`. This way we can progresivly
enhance Alchemy extensions and modules to use the new UI
Tooltips instead of titles but keep downwards compatibility.
Make it work with buttons nested in a form as well,
like the delete button.
If a `title` is passed as `html_options` to `delete_button` helper
we use that to create a `sl-tooltip`. This way we can progresivly
enhance Alchemy extensions and modules to use the new UI
Tooltips instead of titles but keep downwards compatibility.
@tvdeyen tvdeyen added this to the 7.1 milestone Jan 14, 2024
@tvdeyen tvdeyen requested a review from a team January 14, 2024 19:54
We changed the selector for form fields inside of forms
in dialogs to support tooltips in 69cbb1d
@tvdeyen tvdeyen merged commit d921ce5 into AlchemyCMS:main Jan 15, 2024
34 checks passed
@tvdeyen tvdeyen deleted the tooltip-title branch January 15, 2024 08:41
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.

2 participants