Skip to content

Commit

Permalink
fix: πŸ› box-sizing css rule scope (#318)
Browse files Browse the repository at this point in the history
* fix: πŸ› box-sizing scope

* chore: πŸ€– update changelog
  • Loading branch information
theashraf authored Mar 5, 2024
1 parent 87708de commit 0587998
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
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

0 comments on commit 0587998

Please sign in to comment.