-
Notifications
You must be signed in to change notification settings - Fork 1
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
Snippet placeholder redesign #496
Conversation
Snippet placeholder node now uses the snippet nodeview component, which in turn shows the snippet placeholder component if relevant. This allows for code re-use between the two for inserting snippets
3f79e36
to
2e3c09f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some minor comments
@elpoelma are you looking at these comments or should I? |
You can do it if you want :) I am currently working on an editor PR which fixes the specificity css styling regression which should remove the need of the |
* Add snippet list names to the modal title * add quotes to the snippet names linting and changeset
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Overview
Continued a little of the refactoring from replacing the snippet placeholder, so that the snippet placeholder component is now used inside a snippet component. This means that I could re-use the insert logic from the snippet buttons and if we wanted in the future we could include buttons in the same style as for inserted snippets. Since I was not including buttons for now, I was able to use @elpoelma 's redesign implementation work almost untouched.
For consistency, I move the snippet list ids information to RDFa for inserted snippet nodes.
connected issues and PRs:
Builds on #495
Jira ticket: https://binnenland.atlassian.net/browse/GN-5117
Setup
N/A
How to test/reproduce
Insert, replace, delete snippets and snippet placeholders with different configurations and make sure everything works as expected. The expected interactivity is different depending on which sample page:
Challenges/uncertainties
N/A
Checks PR readiness