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

Allow overlayInnerStyle to pass through in Tooltip component #27682

Merged
merged 1 commit into from
Dec 3, 2020

Conversation

jasepellerin
Copy link
Contributor

Currently, the innerStyle is only passed if a color is provided which does not match the preset colors. This fix allows overlayInnerStyle to pass through regardless of the value of color.

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

It is useful to pass styles through to the inner container, but this wasn't possible without also passing a non-preset color. This changes simply allows the overlayInnerStyle prop to pass through to the child in all cases.

📝 Changelog

Language Changelog
🇺🇸 English Anyone using overlayInnerStyle but not seeing styles passed through will see a change.
🇨🇳 Chinese

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

Currently, the innerStyle is only passed if a color is provided which does not match the preset colors. This fix allows `overlayInnerStyle` to pass through regardless of the value of `color`.
@ant-design-bot
Copy link
Contributor

ant-design-bot commented Nov 10, 2020

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 5197871:

Sandbox Source
antd reproduction template Configuration

@codecov
Copy link

codecov bot commented Nov 10, 2020

Codecov Report

Merging #27682 (5197871) into master (05e9edc) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master    #27682   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          390       390           
  Lines         7404      7405    +1     
  Branches      2083      2042   -41     
=========================================
+ Hits          7404      7405    +1     
Impacted Files Coverage Δ
components/tooltip/index.tsx 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 05e9edc...5197871. Read the comment docs.

@jasepellerin jasepellerin changed the title Allow overlayInnerStyle to pass through Allow overlayInnerStyle to pass through in Tooltip component Nov 19, 2020
@afc163 afc163 merged commit 13f9285 into ant-design:master Dec 3, 2020
@jasepellerin jasepellerin deleted the overlayInnerStyle branch December 3, 2020 05:37
@ycjcl868 ycjcl868 mentioned this pull request Dec 6, 2020
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