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

renderer: add classes for icons and link directives #327

Merged
merged 2 commits into from
Sep 1, 2022

Conversation

jenshalm
Copy link
Contributor

@jenshalm jenshalm commented Aug 30, 2022

Enhances the renderer to add more classes for UI elements to make it easier to customize the look & feel.

  • Link directives now always add a class corresponding to the name of the directive to the rendered <a> tag. For the built-in link directives, these are the @:api and @:source directives, but the behaviour is the same for user-defined link directives.
  • The @:icon directive and all pre-defined icons in the HeliumIcon type now also write the identifier of the icon as a class (e.g. HeliumIcon.home now adds a home class to the <i> tag).

Closes #285

@jenshalm jenshalm added this to the 0.19.0 milestone Aug 30, 2022
@jenshalm jenshalm merged commit 1777b1f into main Sep 1, 2022
@jenshalm jenshalm deleted the html/render-styles branch September 1, 2022 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Render @:api directive like code (backtickified) ?
1 participant