-
Notifications
You must be signed in to change notification settings - Fork 77
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
CalciteTooltip | CalcitePopover Enhancements #167
Conversation
type updates, overall spacing and image placement
- removed hover and pressed states from tooltip - updated `x` location and used flexbox - general styling updates
New stuff looks great! Couple of questions for @julio8a Should we just provide padding OOTB for folks on the popover div? Say, 12px by default for x and y padding to match that of tooltip? Otherwise we open it up for folks to use whatever inconsistent padding they want... Should we flex close button full height of container to prevent weird non-clickable "not quite as tall" areas like this? I guess it's kind of an inevitability unless we want center aligned close buttons for lots of text, but it sure is weird... Now that there are no border radius on these, the x shouldn't have border-radius either. I think they previously did in the tooltip component but removing it as we did now solves, so the close button should also have 0px border radius now that that has changed. |
For the Map viewer, they would like to control the padding I think. They are putting other components inside it that already have padding defined. For the tooltip, i'm ok with default padding. |
Moves font size declaration to container, adds component prefix, removes unused classes.
…e unused state and class.
Tooltip has been made accessible. |
Accessibility fixes installed for Popover and Tooltip but could use review from some folks. Thanks! |
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 can't review the accessibility work, but desing looks good!
Is this good to merge? |
Going to merge this. We can create follow up issues for anything else needed. |
calcite-tooltip
Properties
open
open
boolean
false
placement
placement
"auto" | "auto-end" | "auto-start" | "bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start"
"auto"
referenceElement
reference-element
HTMLElement | string
undefined
theme
theme
"dark" | "light"
"light"
Methods
reposition() => Promise<void>
Returns
Type:
Promise<void>
#155 (comment)
Related to #155
calcite-popover
Properties
addClickHandle
add-click-handle
boolean
false
closeButton
close-button
boolean
false
open
open
boolean
false
placement
placement
"horizontal" | "vertical"
"horizontal"
referenceElement
reference-element
HTMLElement | string
undefined
xOffset
x-offset
number
0
yOffset
y-offset
number
0
Methods
reposition() => Promise<void>
Returns
Type:
Promise<void>
toggle() => Promise<void>
Returns
Type:
Promise<void>
Slots
"image"
Built with StencilJS