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

[FEATURE] Specify button icon position #2522

Open
esmeetewinkel opened this issue Nov 12, 2024 · 0 comments
Open

[FEATURE] Specify button icon position #2522

esmeetewinkel opened this issue Nov 12, 2024 · 0 comments
Labels
feature Work on app features/modules

Comments

@esmeetewinkel
Copy link
Collaborator

esmeetewinkel commented Nov 12, 2024

What?
Want to be able to specify whether the icon on a button appears to the left or to the right of the button text. Also should be able to specify whether the text is left-aligned, right-aligned or centred.

Why?
Wants to be used by PLH Kids TZ deployment in nav_buttons template: web preview and sheet and issue

How?

  • a new parameter icon_position which can be left or right
  • ensure text_align parameter is interpreted when used in combination with the icon parameter (or maybe have text_position always be the opposite of icon_position)

Screenshots
Currently:
image

Desired:
image
(can ignore the primary rather than white button text, out of the scope of this issue)

@esmeetewinkel esmeetewinkel added the feature Work on app features/modules label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Work on app features/modules
Projects
None yet
Development

No branches or pull requests

1 participant