-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
--bg-color: var(--cz-color-white); | ||
--font-size: 0.875rem; | ||
position: relative; | ||
max-width: 23rem; |
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.
oui :D can't we have this in px? (since we want to use px for width at this moment 🤔 )
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.
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 😅
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.
ok, good to know :)
top: 0.25rem; | ||
right: 0.25rem; | ||
|
||
height: 1.5rem; |
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.
same as the above statement, px is better I believe
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.
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? 🤔
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.
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"> |
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.
the [id] can come after class/role etc :)
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.
Id should alwasy be (almost) first, even if it is dynamic :) https://www.notion.so/cognizone/Angular-c8f02176425644c093b1f7c33bcccae9?pvs=4#b48d5c9b77584d769b9947da69a97703
600c324
to
8b6e82c
Compare
No description provided.