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

feat(ui-kit): ported toggletip module from Hanami #83

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

WilliamChelman
Copy link
Collaborator

No description provided.

--bg-color: var(--cz-color-white);
--font-size: 0.875rem;
position: relative;
max-width: 23rem;
Copy link
Contributor

Choose a reason for hiding this comment

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

oui :D can't we have this in px? (since we want to use px for width at this moment 🤔 )

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here it's one of the cases where width in rem makes more sense -> if the user sets a high font size, it's better to leave it some more breathing room, otherwise with a width in px it will feel cramped 😅

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, good to know :)

top: 0.25rem;
right: 0.25rem;

height: 1.5rem;
Copy link
Contributor

Choose a reason for hiding this comment

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

same as the above statement, px is better I believe

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I changed top and right to px which indeed make more sense, but here since it's about an ico button, I feel it's better to make it bigger if the user sets a higher font size, as it would make the button easier to click on? What do you think? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

if it works fine for you with higher font sizes, we can keep it as is :)

selector: 'cz-toggletip',
template: `
<ng-template #tpl>
<div [id]="dialogId" class="cz-toggletip-content" role="dialog" tabindex="-1">
Copy link
Contributor

Choose a reason for hiding this comment

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

the [id] can come after class/role etc :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@WilliamChelman WilliamChelman merged commit 3439a76 into main Feb 16, 2024
3 checks passed
@WilliamChelman WilliamChelman deleted the feature/toggletip branch February 16, 2024 15:18
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.

3 participants