Skip to content

Commit

Permalink
Add specificity to pattern category names (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgardner committed Feb 12, 2024
1 parent 53843af commit b7ef923
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ function frost_register_block_styles() {
function frost_register_block_pattern_categories() {

register_block_pattern_category(
'page',
'frost-page',
array(
'label' => __( 'Page', 'frost' ),
'description' => __( 'Create a full page with multiple patterns that are grouped together.', 'frost' ),
)
);
register_block_pattern_category(
'pricing',
'frost-pricing',
array(
'label' => __( 'Pricing', 'frost' ),
'description' => __( 'Compare features for your digital products or service plans.', 'frost' ),
Expand Down
2 changes: 1 addition & 1 deletion patterns/page-about.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Title: Sample about page.
* Slug: frost/page-about
* Categories: page
* Categories: frost-page
*/
?>
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"70px","bottom":"var:preset|spacing|x-large","right":"30px","left":"30px"}}},"layout":{"type":"constrained"}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/page-home.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Title: Sample home page.
* Slug: frost/page-home
* Categories: page
* Categories: frost-page
*/
?>
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"30px","bottom":"var:preset|spacing|x-large","left":"30px","top":"70px"},"margin":{"top":"0px"},"blockGap":"10px"}},"className":"welcome","layout":{"type":"constrained","wideSize":"800px"}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/page-link.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Title: Sample link page.
* Slug: frost/page-link
* Categories: page
* Categories: frost-page
*/
?>
<!-- wp:group {"align":"full","style":{"spacing":{"margin":{"top":"0px"},"padding":{"left":"0px","top":"var:preset|spacing|large","right":"0px","bottom":"var:preset|spacing|large"}},"dimensions":{"minHeight":"100vh"}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"center"}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/page-pricing.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Title: Sample pricing page.
* Slug: frost/page-pricing
* Categories: page
* Categories: frost-page
*/
?>
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|small","bottom":"var:preset|spacing|large"}}},"layout":{"type":"constrained"}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/pricing-four-columns-dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Title: Pricing table with heading, list, buttons.
* Slug: frost/pricing-four-columns-dark
* Categories: pricing
* Categories: frost-pricing
*/
?>
<!-- wp:group {"align":"wide","layout":{"type":"default"}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/pricing-four-columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Title: Pricing table with heading, list, buttons.
* Slug: frost/pricing-four-columns
* Categories: pricing
* Categories: frost-pricing
*/
?>
<!-- wp:group {"align":"wide","layout":{"type":"default"}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/pricing-three-columns-dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Title: Pricing table with heading, list, buttons.
* Slug: frost/pricing-three-columns-dark
* Categories: pricing
* Categories: frost-pricing
*/
?>
<!-- wp:group {"align":"wide","layout":{"type":"default"}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/pricing-three-columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Title: Pricing table with heading, list, buttons.
* Slug: frost/pricing-three-columns
* Categories: pricing
* Categories: frost-pricing
*/
?>
<!-- wp:group {"align":"wide","layout":{"type":"default"}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/pricing-two-columns-dark.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Title: Pricing table with heading, list, buttons.
* Slug: frost/pricing-two-columns-dark
* Categories: pricing
* Categories: frost-pricing
*/
?>
<!-- wp:group {"align":"wide","layout":{"type":"constrained","wideSize":"800px"}} -->
Expand Down
2 changes: 1 addition & 1 deletion patterns/pricing-two-columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Title: Pricing table with heading, list, buttons.
* Slug: frost/pricing-two-columns-main
* Categories: pricing
* Categories: frost-pricing
*/
?>
<!-- wp:group {"align":"wide","layout":{"type":"constrained","wideSize":"800px"}} -->
Expand Down

0 comments on commit b7ef923

Please sign in to comment.