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 data-name to the .matrixblock #11286

Merged
merged 1 commit into from
May 20, 2022
Merged

Conversation

davidhellmann
Copy link
Contributor

Description

We use CPSS very much to extend/style our Matrix Builders.
The data-attr would be very helpful to do things like: content: attr(data-name); for custom labels on the blocks. It's a bit sugar and has no side effects I think.

Here is an image what we do:
image
it's a bit easier to scan on huge content pages.

Created the same PR on the NEO Field.

We use CPSS very much to extend/style our Matrix Builders.
The data-attr would be very helpful to do things like: content: attr(data-name); for custom labels on the blocks. It's a bit sugar and has no side effects I think.
@davidhellmann davidhellmann requested a review from a team as a code owner May 20, 2022 08:24
@brandonkelly brandonkelly merged commit 29cd25b into craftcms:develop May 20, 2022
@brandonkelly
Copy link
Member

Merged! Went with data-type-name instead, and made sure newly-created blocks got it too.

@davidhellmann
Copy link
Contributor Author

Nice Brandon,
I saw it afterwards that I forgot something. Thanks for finishing!

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