-
Notifications
You must be signed in to change notification settings - Fork 21
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
Trim spaces and line breaks beside icons #2958
Conversation
✅ Deploy Preview for ons-design-system-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for ons-design-system-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
The padding around the pagination component and breadcrumbs component now needs updating. As this issue only affects places where an SVG is placed after text and not before the padding is no longer consistent between the two. I also think we need to run these changes past Dina to see if shes happy with the padding or prefers the padding before the change. If she prefers that latter than I still think we should fix this but just increase the actual margin. Also we are no longer minifying the HTML, just removing line breaks before svg elements so the PR title and description should be updated. There are other benefits to minification are we happy to not minify? We need to research and discuss this because we could easily have the minification you had before alongside the regex which could be the best of both. |
As part of this PR the external link component can now be updated to use the icon component instead of hardcoding the svg. The external link icon might need to be added to the icon macro to do that |
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.
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.
Couple of minor things
What is the context of this PR?
Fixes #2873
Currently there extra spaces beside icons in the Design System. Following the suggestion made in the issue linked, I made use of the
--
syntax in Nunjucks to trim any trailing whitespace or line breaks.I have also updated the external link component to use the onsIcon rather than
<svg>
. Tests to cover this scenario have been added as well.How to review this PR
Check components which include an icon if there is an extra white space. Use the image in the issue linked to the PR as a reference
Checklist
This needs to be completed by the person raising the PR.