You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The label text of the web component does not show when there are spaces or line breaks before the closing tag. I attach an example in Codepen
Component(s) impacted
Browser
Chrome
Carbon for IBM.com version
2.0.1
Severity
Severity 1 = The design is broken in a critical way that blocks users from completing tasks or damages the brand. Affects major functionality, no workaround.
…en there is white space before closing tag (#11430)
…ite space before closing
### Related Ticket(s)
Closes#11167
### Description
The label text of the web component does not show when there are spaces or line breaks before the closing tag.
There is an unnamed slot in the component, which replaces the `<p>` tag with the white space inside the component.
### Changelog
**Changed**
- Named the slot the to `label-text`.
<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
…en there is white space before closing tag (carbon-design-system#11430)
…ite space before closing
### Related Ticket(s)
Closescarbon-design-system#11167
### Description
The label text of the web component does not show when there are spaces or line breaks before the closing tag.
There is an unnamed slot in the component, which replaces the `<p>` tag with the white space inside the component.
### Changelog
**Changed**
- Named the slot the to `label-text`.
<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
Description
The label text of the web component does not show when there are spaces or line breaks before the closing tag. I attach an example in Codepen
Component(s) impacted
Browser
Chrome
Carbon for IBM.com version
2.0.1
Severity
Severity 1 = The design is broken in a critical way that blocks users from completing tasks or damages the brand. Affects major functionality, no workaround.
Application/website
not ready yet
Package
@carbon/web-components
CodeSandbox example
https://codepen.io/alemscoder/pen/zYeayVV
Steps to reproduce the issue (if applicable)
No response
Release date (if applicable)
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: