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

Make description element visible if passed in ChildContent #881

Merged
merged 2 commits into from
Dec 12, 2020

Conversation

szmalec
Copy link
Contributor

@szmalec szmalec commented Dec 11, 2020

[中文版模板 / Chinese template]

🤔 This is a ...

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

🔗 Related issue link

#875

💡 Background and solution

Fix is simple - modified conditions which are used to apply ant-alert-description to span with desciption (span was rendered but with default display: none style).
One thing to mention - the user can simultaneously pass the value in the Description parameter and define the content in ChildContent. In this case, two span tags with a description are inserted and render side by side instead of one below the other. I did not try to fix this because it is a rather rare case and I also feel average about CSS;]

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 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
  • Changelog is provided or not needed

@codecov-io
Copy link

Codecov Report

Merging #881 (4fa0258) into master (c9ec05e) will increase coverage by 0.15%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #881      +/-   ##
=========================================
+ Coverage    5.40%   5.55%   +0.15%     
=========================================
  Files         400     400              
  Lines       21282   21282              
=========================================
+ Hits         1150    1182      +32     
+ Misses      20132   20100      -32     
Impacted Files Coverage Δ
components/alert/Alert.razor.cs 0.00% <0.00%> (ø)
components/tabs/TabPane.razor.cs 92.06% <0.00%> (+1.58%) ⬆️
components/core/Base/AntComponentBase.cs 42.30% <0.00%> (+5.12%) ⬆️
components/tabs/Tabs.razor.cs 55.51% <0.00%> (+11.02%) ⬆️

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 c9ec05e...4fa0258. Read the comment docs.

Copy link
Member

@ElderJames ElderJames left a comment

Choose a reason for hiding this comment

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

LGTM

@ElderJames ElderJames merged commit 443de9f into ant-design-blazor:master Dec 12, 2020
ElderJames pushed a commit that referenced this pull request Apr 23, 2022
…ldContent (#881)

* fix(module: alert): make description element visible if passed in ChildContent (#875)

* docs(module: alert): modified example - instead of Description parameter ChildContent is used (#875)
ElderJames pushed a commit that referenced this pull request Apr 30, 2022
…ldContent (#881)

* fix(module: alert): make description element visible if passed in ChildContent (#875)

* docs(module: alert): modified example - instead of Description parameter ChildContent is used (#875)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants