-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
style: database modal updates #11311
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11311 +/- ##
==========================================
- Coverage 65.78% 61.43% -4.35%
==========================================
Files 839 841 +2
Lines 39828 39858 +30
Branches 3652 3659 +7
==========================================
- Hits 26200 24487 -1713
- Misses 13528 15190 +1662
- Partials 100 181 +81
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
28750e4
to
4911e68
Compare
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.
LGTM!
className?: string; | ||
tooltip: string; | ||
placement?: | ||
| 'bottom' |
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 was looking before for a way to import type specifications from antd
but couldn't find an easy way. It sucks to have to redefine/align the type defs on our side as these could get out of sync as we upgrade antd. Would it make more sense to import this? https://github.com/ant-design/ant-design/blob/master/components/tooltip/index.tsx#L14
import { InfoTooltipProps } from 'antd/components/tooltip/';
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 tried to import TooltipPlacement
but got an error about it not being exported, so I don't think it's exposed. :/
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.
Mmmh. We may need to start growing a antdCommonTypes
/ antdTypeHelpers
somewhere for this use case. It's likely that we'll want to reuse these!
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.
@rusackas , any thoughts?
*/ | ||
import { Tooltip } from 'src/common/components'; | ||
|
||
export default Tooltip; |
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.
What's the thought-process around this wrapper component? I saw that we have similar ones that wrap antd but with our styles applied on top. Should the styled tooltip css above be in this file?
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 wanted to leave it open in case we wanted to add custom styles at a later time. It might make sense to take the custom styles in InfoTooltip
and just apply them to the general Tooltip
component here though!
Let's get this file rebased and merged. We can continue discussion around best approach for handling antd types/styling separately. |
4911e68
to
60e4a54
Compare
SUMMARY
Secure Extra
andExtra
fieldsInfoTooltip
component that uses ant-dTooltip
InfoTooltip
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION