-
Notifications
You must be signed in to change notification settings - Fork 186
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
fix(ConfigProvider) Allow duplicated classes in the body created by ConfigProvider #5633
fix(ConfigProvider) Allow duplicated classes in the body created by ConfigProvider #5633
Conversation
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 f47870a:
|
To make sure embedded apps do not remove body class name of the main app which is required for tokens. Each app will add it's own class and remove it whenever they need.
e09338c
to
8c27b61
Compare
size-limit report 📦
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #5633 +/- ##
==========================================
+ Coverage 81.76% 81.78% +0.01%
==========================================
Files 290 290
Lines 9731 9746 +15
Branches 3108 3113 +5
==========================================
+ Hits 7957 7971 +14
- Misses 1774 1775 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
👀 Docs deployedCommit f47870a |
e2e tests |
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.
resolves: #5518
Для того чтобы независимые приложения не удаляли класс главного приложений из body при размонтировании мы позволяем каждому приложению на странице добавить свой класс в body с помощью
ConfigProvider
, даже если такой класс уже есть.Работа с классами
body
ведётся с помощьclassName
а неclassList
(который не допускает дубликатов).