Skip to content

[FEATURE] add configuration block directive #795

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

Merged
merged 1 commit into from
Jan 14, 2024
Merged

Conversation

jaapio
Copy link
Member

@jaapio jaapio commented Dec 30, 2023

Add the implementation of the configuration block directive. To make the implemtation more generic a configuration option is introduced. This will allow the users to configure their own labels.

@jaapio
Copy link
Member Author

jaapio commented Dec 30, 2023

@wouterj @greg0ire, I copied the work by @wouterj to the project, and adjusted it a bit to allow some customization instead of the fixed list of languages. The added test shows how to configure this.

Please let me know if this fits your needs.

@jaapio jaapio force-pushed the feature/configuration-tab branch from ddf33ff to 96a6cbf Compare December 30, 2023 21:22
@jaapio jaapio requested a review from linawolf December 30, 2023 21:23
@jaapio
Copy link
Member Author

jaapio commented Dec 30, 2023

Maybe we should change the template a bit to work with this css trick: https://css-tricks.com/examples/CSSTabs/radio.php

@wouterj
Copy link
Contributor

wouterj commented Dec 30, 2023

Maybe we should change the template a bit to work with this css trick: https://css-tricks.com/examples/CSSTabs/radio.php

The default theme doesn't come with CSS though as far as I know. Maybe we can use <details> as that's the best tab-like view you can create with plain HTML? https://jsfiddle.net/e3zwvp4m/

In the bootstrap extension, we have to override this anyways to use BootstrapCSS's tabs styling. And the same applies to Symfony.

@linawolf
Copy link
Contributor

Maybe we should change the template a bit to work with this css trick: https://css-tricks.com/examples/CSSTabs/radio.php

This "Trick" is not accessible however.

@jaapio jaapio force-pushed the feature/configuration-tab branch from 96a6cbf to 2a2bce9 Compare December 31, 2023 10:24
Copy link
Contributor

@linawolf linawolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, I only have a few small remarks

@jaapio jaapio force-pushed the feature/configuration-tab branch from 61ce8ba to db45967 Compare January 5, 2024 12:07
@linawolf linawolf force-pushed the feature/configuration-tab branch from db45967 to f1453d7 Compare January 13, 2024 11:50
@linawolf
Copy link
Contributor

@jaapio shall we merge this?

Add the implementation of the configuration block directive.
To make the implemtation more generic a configuration option is
introduced. This will allow the users to configure their own labels.

Co-authored-by: Wouter de Jong <wouterj@users.noreply.github.com>
@jaapio jaapio force-pushed the feature/configuration-tab branch from 654c270 to 8ef9662 Compare January 14, 2024 20:19
@jaapio jaapio enabled auto-merge January 14, 2024 20:19
@jaapio jaapio merged commit 74c0a35 into main Jan 14, 2024
@jaapio jaapio deleted the feature/configuration-tab branch January 14, 2024 20:21
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.

4 participants