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

fix: 🐛 box-sizing css rule scope #318

Merged
merged 2 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/little-carpets-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@dotlottie/player-component': patch
'@dotlottie/react-player': patch
---

fix: 🐛 box-sizing css rule scope
8 changes: 4 additions & 4 deletions packages/player-component/src/dotlottie-player.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ export default css`
src: url('./fonts/Karla-regular.woff') format('woff');
}

* {
box-sizing: border-box;
}

:host {
--lottie-player-toolbar-height: 35px;
--lottie-player-toolbar-background-color: transparent;
Expand All @@ -37,6 +33,10 @@ export default css`
-moz-osx-font-smoothing: grayscale;
}

:host * {
box-sizing: border-box;
}

.active {
color: var(--lottie-player-toolbar-icon-active-color) !important;
}
Expand Down
8 changes: 4 additions & 4 deletions packages/react-player/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
src: url('./fonts/Karla-Regular.woff') format('woff');
}

* {
box-sizing: border-box;
}

.dotlottie-container {
--lottie-player-theme-color: rgb(0, 221, 179);
--lottie-player-seeker-thumb-color: #00c1a2;
Expand All @@ -29,6 +25,10 @@
-moz-osx-font-smoothing: grayscale;
}

.dotlottie-container * {
box-sizing: border-box;
}

.main {
display: flex;
flex-direction: column;
Expand Down
Loading