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

Ability to define an optional subtitle per crud #4482

Open
wants to merge 2 commits into
base: 4.x
Choose a base branch
from

Conversation

plandolt
Copy link
Contributor

@plandolt plandolt commented Jul 15, 2021

This PR allows to have a subtitle next to the default title per crud page. The subtitle is a little bit smaller and a h2. It will not be rendered at all if none is provided.

This is how it looks with this PR:
image

I also tried it with a text color of var(--text-color). I'm not sure what looks better:
image

And a version with font-weight: 400 and var(--text-color):
image

ADDITION: on index.html.twig and new.html.twig I also modified the "normal" title as we can use the pageName variable there as in the other views.

@plandolt
Copy link
Contributor Author

Added some tests and the fix from #4196 for title and subtitle.

@javiereguiluz javiereguiluz added this to the 3.x milestone Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants