Skip to content
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fixed dataviews styles imported in share status being added globally
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import '@wordpress/dataviews/build-style/style.css';

.trigger-wrapper {
margin-top: 1rem;
padding-block: 1rem;
Expand Down Expand Up @@ -65,6 +63,16 @@
}

.dataview-wrapper {
/**
* We have to use scoped import to avoid styles being added globally.
* By importing the styles here, all the styles from dataviews package will be scoped to this component.
* @see https://github.com/Automattic/jetpack/issues/39981
*/
// Use :global scope to avoid CSS encapsulation
:global {
// Use import without ".css" extension to avoid it being rendered as URL
@import '@wordpress/dataviews/build-style/style';
}

// Hide the table actions
:global(.dataviews__view-actions) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: bugfix

Fixed dataviews styles imported in share status being added globally
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fixed dataviews styles imported in share status being added globally
Loading