Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Commit

Permalink
Fix/7812 activity panel styling (#7813)
Browse files Browse the repository at this point in the history
* Increase specificity of activity panel css to avoid conflicts

* Fix linting

* Fix some other styles

* Add changelog
  • Loading branch information
louwie17 committed Oct 22, 2021
1 parent fd80077 commit ae3b49f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions changelogs/fix-7812_activity_panel_styling
@@ -0,0 +1,4 @@
Significance: patch
Type: Fix

Increase CSS specificity to avoid conflicts and broken panel styling. #7813
6 changes: 3 additions & 3 deletions client/header/activity-panel/activity-card/style.scss
@@ -1,4 +1,4 @@
.woocommerce-activity-card {
.woocommerce-activity-panel .woocommerce-activity-card {
position: relative;
padding: $fallback-gutter;
padding: $gutter;
Expand Down Expand Up @@ -209,7 +209,7 @@
}

// Needs the double-class for specificity
.woocommerce-activity-card.woocommerce-order-activity-card {
.woocommerce-activity-panel .woocommerce-activity-card.woocommerce-order-activity-card {
grid-template-columns: 1fr;
grid-template-areas:
'header'
Expand All @@ -232,7 +232,7 @@
}

// Needs the double-class for specificity
.woocommerce-activity-card.woocommerce-inbox-activity-card {
.woocommerce-activity-panel .woocommerce-activity-card.woocommerce-inbox-activity-card {
grid-template-columns: 72px 1fr;
height: 100%;
opacity: 1;
Expand Down
2 changes: 1 addition & 1 deletion client/homescreen/activity-panel/style.scss
@@ -1,4 +1,4 @@
.woocommerce-activity-panel {
.woocommerce-homescreen .woocommerce-activity-panel {
background: transparent;
border: 0;

Expand Down

0 comments on commit ae3b49f

Please sign in to comment.