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

update use of Component_.name to account for dollar signs in the name #200

Merged

Conversation

rlansky-percipient
Copy link
Contributor

I've run into an issue where, during our production builds, occasionally a Component name will contain a $ at the front. Names like $a, or $b will sometimes occur. When this happens, the classname applied will then contain a $, which is not a legal value in CSS. The result is that the styles do not get correctly applied to the component. While this doesn't happen often, when it does occur, the consequence are pretty severe.

The change in this PR resolves that issue by replacing the $s in the usage of Component_.name with the string usd. I have confirmed that this does resolve the issue in our production build in case where it was previously not working.

I did not create a Github issue for this because I was unable to come up with a repeatable failure case that did not involve our entire code base.

@garronej
Copy link
Owner

Thanks a lot for investigating this and having submited a pr

@garronej garronej merged commit 69c5ff2 into garronej:main Oct 18, 2023
renovate bot referenced this pull request in Unleash/unleash Oct 30, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [tss-react](https://www.tss-react.dev)
([source](https://togithub.com/garronej/tss-react)) | [`4.9.2` ->
`4.9.3`](https://renovatebot.com/diffs/npm/tss-react/4.9.2/4.9.3) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/tss-react/4.9.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/tss-react/4.9.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/tss-react/4.9.2/4.9.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/tss-react/4.9.2/4.9.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>garronej/tss-react (tss-react)</summary>

###
[`v4.9.3`](https://togithub.com/garronej/tss-react/releases/tag/v4.9.3)

[Compare
Source](https://togithub.com/garronej/tss-react/compare/v4.9.2...v4.9.3)

<!-- Release notes generated using configuration in .github/release.yaml
at refs/heads/main -->

#### What's Changed

##### Other Changes

- update use of Component\_.name to account for dollar signs in the name
by [@&#8203;rlansky-percipient](https://togithub.com/rlansky-percipient)
in
[https://github.com/garronej/tss-react/pull/200](https://togithub.com/garronej/tss-react/pull/200)

#### New Contributors

- [@&#8203;rlansky-percipient](https://togithub.com/rlansky-percipient)
made their first contribution in
[https://github.com/garronej/tss-react/pull/200](https://togithub.com/garronej/tss-react/pull/200)

**Full Changelog**:
garronej/tss-react@v4.9.2...v4.9.3

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMS41IiwidXBkYXRlZEluVmVyIjoiMzcuMzEuNSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

2 participants