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/1219 configurable drawer button #1255

Merged
merged 8 commits into from
Dec 21, 2022

Conversation

linusfj
Copy link
Member

@linusfj linusfj commented Dec 7, 2022

Closes #1219.

@linusfj linusfj linked an issue Dec 7, 2022 that may be closed by this pull request
- Dynamically import custom icon font and return an icon component.
- Enter the name of the icon as a parameter in admin.
Copy link
Member

@Hallbergs Hallbergs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like the icon is placed a bit off, see image below:

image

The 8px margin you added is probably the culprit.

@Hallbergs
Copy link
Member

It is still off, check image below:
image

Checking if drawerButtonTitle is nullish won't work since it is always set. We decide if we render it or not based on viewport size.

Also, just curious. Why an <i>-tag?

This solves a bug that added margin to the icon on mobile devices.
@linusfj
Copy link
Member Author

linusfj commented Dec 20, 2022

The icon has been updated to use a custom component instead, which has been styled to not add margin on some viewports.

@Hallbergs Hallbergs merged commit 0dca7b6 into develop Dec 21, 2022
@Hallbergs Hallbergs deleted the feature/1219-configurable-drawer-button branch December 21, 2022 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Making the documenthandler drawerButtonIcon configurable
2 participants