Skip to content

Commit

Permalink
Removed spacing around curly braces in CSS rules. Updated tests.
Browse files Browse the repository at this point in the history
We could maybe add a prettify option down the road.

Juggling methods around to cater for adding styles to (any) store.
Also making return values consistent.
  • Loading branch information
ramonjd committed Jul 18, 2022
1 parent 5e3669e commit 33eb74e
Show file tree
Hide file tree
Showing 4 changed files with 181 additions and 139 deletions.
2 changes: 1 addition & 1 deletion packages/style-engine/class-wp-style-engine-css-rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@ public function get_selector() {
* @return string
*/
public function get_css() {
return $this->get_selector() . ' { ' . $this->declarations->get_declarations_string() . ' }';
return $this->get_selector() . ' {' . $this->declarations->get_declarations_string() . '}';
}
}
Loading

0 comments on commit 33eb74e

Please sign in to comment.