From e40e3b649d7ca169af91f9b5b03d918897fbb790 Mon Sep 17 00:00:00 2001 From: francgrasso Date: Tue, 6 Aug 2024 12:59:39 +0200 Subject: [PATCH] fix select element - fix woo inputs - fix thankyou page --- assets/css/general-block-style.css | 8 ++++ assets/css/general-block-style.css.map | 2 +- assets/css/woocommerce/woocommerce.css | 37 +++++++++++++++++++ assets/css/woocommerce/woocommerce.css.map | 2 +- assets/sass/general-block-style.scss | 8 ++++ assets/sass/woocommerce/generic.scss | 37 +++++++++++++++++++ functions.php | 3 ++ ...=> registered-block-patterns-override.php} | 0 8 files changed, 95 insertions(+), 2 deletions(-) rename inc/{registered_block_patterns_override.php => registered-block-patterns-override.php} (100%) diff --git a/assets/css/general-block-style.css b/assets/css/general-block-style.css index 4002d89..61e05dc 100644 --- a/assets/css/general-block-style.css +++ b/assets/css/general-block-style.css @@ -109,7 +109,15 @@ textarea { } select { + -webkit-appearance: none; + -moz-appearance: none; + background: transparent; + background-image: url("data:image/svg+xml;utf8,"); + background-repeat: no-repeat; + background-position: calc(100% - 10px) center; + padding-right: 40px !important; padding: 3px; + line-height: normal; } input[type=submit], diff --git a/assets/css/general-block-style.css.map b/assets/css/general-block-style.css.map index 98ac986..e0b84e3 100644 --- a/assets/css/general-block-style.css.map +++ b/assets/css/general-block-style.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["../sass/general-block-style.scss"],"names":[],"mappings":"AAAC;AACD;EACC;;;AAGD;AACA;EACI;EACA;EACA;;;AAGJ;AACA;EACC;;;AAGD;EACC;;;AAED;EACC;EACA;;;AAGD;AAIE;AAAA;EACC;;;AAIH;AACA;EAIG;AAAA;IACC;IACA;IACA;;EAIH;AAAA;IAEC;IACA;;EAGD;IACC;IACA;;EAED;IACC;;;AAIF;AACA;EACC;;;AAGD;AACA;EACC;AAAA;IAEC;;EAED;AAAA;IAEC;;;AAIF;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAmBC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGD;EACC;;;AAGD;EACC;EACA;;;AAGD;EACC;;;AAGD;AAAA;EAEC;EACG;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAOH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEC;;;AAIF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAOC;;;AAGD;EACC;EACG;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACH;EACG;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACC;;;AAGD;EACC;;;AAGD;AAAA;AAAA;AAAA;AAAA;AAAA;EAOC;EACA;EACA;;;AAGD;EACC;;;AAED;EACC;;;AAGD;AAEC;EACC;EACA;;;AAIF;AACA;EACC;IACC;IACA;;EAED;IACC;IACA;;;AAIF;EACC;EACA;EACA;;AAEA;EACC;;;AAIF;AAEC;EACC;EACA;EACA;;AAGD;EACC;EACA;EACA;;AAGD;EACC;EACA;EACA;EACA;;;AAKF;AAAA;EAEI;;;AAEJ;AAAA;EAEI;;;AAGJ;EACI;;;AAGJ;AACA;EACI;EACA","file":"general-block-style.css"} \ No newline at end of file +{"version":3,"sourceRoot":"","sources":["../sass/general-block-style.scss"],"names":[],"mappings":"AAAC;AACD;EACC;;;AAGD;AACA;EACI;EACA;EACA;;;AAGJ;AACA;EACC;;;AAGD;EACC;;;AAED;EACC;EACA;;;AAGD;AAIE;AAAA;EACC;;;AAIH;AACA;EAIG;AAAA;IACC;IACA;IACA;;EAIH;AAAA;IAEC;IACA;;EAGD;IACC;IACA;;EAED;IACC;;;AAIF;AACA;EACC;;;AAGD;AACA;EACC;AAAA;IAEC;;EAED;AAAA;IAEC;;;AAIF;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAmBC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGD;EACC;;;AAGD;EACC;EACA;;;AAGD;EACI;EACA;EACA;EACA;EACA;EACA;EACA;EACH;EACG;;;AAGJ;AAAA;EAEC;EACG;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAOH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEC;;;AAIF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAOC;;;AAGD;EACC;EACG;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACI;EACA;EACH;EACG;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACC;;;AAGD;EACC;;;AAGD;AAAA;AAAA;AAAA;AAAA;AAAA;EAOC;EACA;EACA;;;AAGD;EACC;;;AAED;EACC;;;AAGD;AAEC;EACC;EACA;;;AAIF;AACA;EACC;IACC;IACA;;EAED;IACC;IACA;;;AAIF;EACC;EACA;EACA;;AAEA;EACC;;;AAIF;AAEC;EACC;EACA;EACA;;AAGD;EACC;EACA;EACA;;AAGD;EACC;EACA;EACA;EACA;;;AAKF;AAAA;EAEI;;;AAEJ;AAAA;EAEI;;;AAGJ;EACI;;;AAGJ;AACA;EACI;EACA","file":"general-block-style.css"} \ No newline at end of file diff --git a/assets/css/woocommerce/woocommerce.css b/assets/css/woocommerce/woocommerce.css index 91b7993..de1d009 100644 --- a/assets/css/woocommerce/woocommerce.css +++ b/assets/css/woocommerce/woocommerce.css @@ -295,6 +295,43 @@ Fix WooCommerce layout max-width introduced in version 7.2 max-width: var(--wp--style--global--content-size); } +.wc-block-components-form .wc-block-components-text-input label, +.wc-block-components-text-input label, +.wc-block-components-combobox .wc-block-components-combobox-control label.components-base-control__label, +.wc-block-components-form .wc-block-components-combobox .wc-block-components-combobox-control label.components-base-control__label { + font-size: 0.875em; +} + +.wc-block-components-form .wc-block-components-text-input input[type=email], +.wc-block-components-form .wc-block-components-text-input input[type=number], +.wc-block-components-form .wc-block-components-text-input input[type=tel], +.wc-block-components-form .wc-block-components-text-input input[type=text], +.wc-block-components-form .wc-block-components-text-input input[type=url], +.wc-block-components-text-input input[type=email], +.wc-block-components-text-input input[type=number], +.wc-block-components-text-input input[type=tel], +.wc-block-components-text-input input[type=text], +.wc-block-components-text-input input[type=url], +.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input, +.wc-block-components-form .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input { + font-size: var(--wp--preset--font-size--x-small); +} + +.wc-block-components-form .wc-block-components-text-input input:-webkit-autofill + label, +.wc-block-components-form .wc-block-components-text-input.is-active label, +.wc-block-components-text-input input:-webkit-autofill + label, +.wc-block-components-text-input.is-active label, +.wc-block-components-combobox.is-active .wc-block-components-combobox-control label.components-base-control__label, +.wc-block-components-combobox:focus-within .wc-block-components-combobox-control label.components-base-control__label, +.wc-block-components-combobox.is-active .wc-block-components-combobox-control label.components-base-control__label, +.wc-block-components-form .wc-block-components-combobox:focus-within .wc-block-components-combobox-control label.components-base-control__label { + transform: translateY(0.5em) scale(0.7) !important; +} + +.wc-block-components-validation-error p { + font-size: var(--wp--preset--font-size--x-small) !important; +} + /** Responsive */ diff --git a/assets/css/woocommerce/woocommerce.css.map b/assets/css/woocommerce/woocommerce.css.map index 0bcd85b..9de1783 100644 --- a/assets/css/woocommerce/woocommerce.css.map +++ b/assets/css/woocommerce/woocommerce.css.map @@ -1 +1 @@ -{"version":3,"sourceRoot":"","sources":["../../sass/woocommerce/woocommerce.scss","../../sass/woocommerce/generic.scss","../../sass/woocommerce/catalog-pages.scss","../../sass/woocommerce/single-product.scss","../../sass/woocommerce/mini-cart.scss","../../sass/woocommerce/cart.scss","../../sass/woocommerce/checkout.scss","../../sass/woocommerce/thankyou.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;ACAA;AACA;EACC;;;A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;AAAA;AAAA;AAIA;EAEC;IACC;;EAGD;IACC;;EAGD;IACC;IACA;;;AAIF;EACC;IACC;IACA;;EAED;IACC;IACA;;;ADrUF;AAAA;AAAA;AELA;AAAA;AAAA;AAGA;AAAA;AAAA;AAAA;EAIC;;;AAGD;EACC;;;AAID;AACA;EACC;EACA;;;AAGD;EACC;EACA;EACA;EACA;EACA;EACA;;AAEA;EACC;EACA;EACA;;AAGD;EACC;;AAGD;EACC;;;AAIF;AACA;EACC;;;AAGD;EACC;;;AAGD;AAAA;AAAA;EAGC;;;AAGD;EACC;;;AAGD;AAAA;AAAA;EAGC;EACA;EACA;;;AAGD;EACC;;;AF9DD;AAAA;AAAA;AGVA;AAAA;AAAA;AAGA;EACI;EACH;EACG;;AAEH;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGD;EACC;;;AAIF;EACI;;;AAKH;EACC;EACA;;AAID;EACC;;;AAIF;EACC;;;AAKC;EACC;EACA;;;AAKH;AACA;EACC;;AAEA;EACC;EACA;;AAEA;EAEC;;AAGD;EACC;EACA;EACA;EACA;;AAEA;EAEC;;AAGD;EACC;EACA;;AAGD;EACC;;AACA;EACC;EACA;EACA;;AAMJ;EACC;EACA;;AAEA;EACC;EACA;;AAGD;EACC;;AAGD;EACC;;AACA;EACC;EACA;EACA;EACA;EACA;;AAGD;EACC;;;AAMJ;EACC;EACA;;AAEA;EACC;;;AHnHF;AAAA;AAAA;AIfA;AAAA;AAAA;AAIC;AAAA;AAAA;AAAA;EAIC;EACA;EACA;EACA;EACA;EACA;;;AAMD;EACC;;AAGD;EACC;EACA;;AAIA;EACC;EACA;EACA;;AAEA;EACC;;AAIF;EACC;;AAEA;EACC;;AAMF;EACC;EACA;EACA;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;;;AJzCH;AAAA;AAAA;AKpBA;AAAA;AAAA;AAKC;EACC;;AAGE;EACI;;AAEP;EACO;;AAEN;EACC;EACS;EACT;EACS;;AAET;EACC;;AAGD;EACa;EACZ;;AAEA;AAAA;EAEC;;AAGD;EACC;EACA;;AAGD;EACC;EACA;;AAEA;AAAA;AAAA;EAGC;EACA;;AAKD;EACC;EACA;;AAED;EACC;EACA;;AAIF;AAAA;EAEC;EACA;EACA;EACA;;AAEA;AAAA;EACC;;AAED;AAAA;EACC;;AAIF;EACC;;AAGD;EACC;;AAGD;EACC;;AACA;EACC;EACA;EACA;;AAGD;EACC;EACA;;AAOL;EACC;EACA;;AAED;EACC;EACA;;AAGD;EACC;;;AAIF;EAEQ;IACI;IACA;IACA;IACA;IACA;IACA;IACA;;EAGJ;IACI;IACA;IACA;IACA;IACA;;EAEA;IACI;IACA;;;ALhHhB;AAAA;AAAA;AMzBA;AAAA;AAAA;AAIC;AAAA;EAEC;;AAGD;AAAA;EAEC;EACA;EACA;;AAGD;EACC;EACA;EACA;;AAGD;EACC;;AAGD;EACC;EACA;;AAEA;EACC;EACA;;AAIF;EACC;EACA;;AAEA;EACC;;AAGD;EACC;EACA;EACA;;AAEA;EACC;;AAKH;EACC;EACA;EACA;EACA;;AAGD;EACC;EACA;;AAIA;EACC;EACA;EACA;;AAGD;EACC;;AAGD;EACC;EACA;;AAGD;EACC;;AAGD;EACC;EACA;;AAGD;AAAA;EAEC;;AAGD;EACC;EACA;EACA;;AAGD;EACC;;AAGD;EACC;;AAKD;EACC;EACA;;AAEA;EACC;EACA;EACA;;AAEA;EACC;;AAGD;EACC;EACA;;AAGD;EACC;EACA;;AAKC;EACC;EACA;;AAGD;EACC;EACA;EACA;;AAMF;EACC;;AAMJ;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIF;EACC;;AAIA;EACC;EACA;;AAIF;EACC;EACA;EACA;EACA;EACA;EACA;;;AAKD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIF;EACC;IACC;IACA;IACA;;EAGD;IACC;IACA;IACA;;EAGD;AAAA;IAEC;IACA;IACA;;;ANnMF;AAAA;AAAA;AO9BA;EACI;;AAEA;EACI;;AAGJ;EACI;EACA;EACA;EACA;EACA;;AAEA;EACI;;AAEA;EACI;;AAIR;EACI;;AAGJ;EACI","file":"woocommerce.css"} \ No newline at end of file +{"version":3,"sourceRoot":"","sources":["../../sass/woocommerce/woocommerce.scss","../../sass/woocommerce/generic.scss","../../sass/woocommerce/catalog-pages.scss","../../sass/woocommerce/single-product.scss","../../sass/woocommerce/mini-cart.scss","../../sass/woocommerce/cart.scss","../../sass/woocommerce/checkout.scss","../../sass/woocommerce/thankyou.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;ACAA;AACA;EACC;;;AAGD;AACA;AAAA;EAEC;;;AAGD;EACC;;;AAGD;AAAA;AAAA;AAGA;AAAA;EAEC;;;AAGD;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAYC;;;AAED;EACC;;AAEA;EACC;;AAEA;EACC;;AAIF;EACC;;AAGD;EACC;;;AAIF;EACC;;;AAGD;EACC;;;AAGD;EACC;;;AAGD;EACC;EACA;;;AAGD;AAAA;EAEC;;;AAGD;EACC;;;AAGD;AACA;AAAA;AAAA;AAAA;EAII;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAGJ;EACC;EACA;;;AAGD;AACA;EACC;;;AAGD;AAAA;AAAA;AAAA;EAIC;EACA;;;AASA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAMC;EACA;EACA;;;AAIF;AACA;EACC;;;AAGD;AACA;AAAA;AAAA;EAGC;;;AAGD;AACA;EACC;;;AAGD;EACI;;;AAKH;EACC;;AAED;EACC;EACA;;;AAIF;EACI;EACA;;;AAGJ;EACI;EACA;;;AAIJ;EACC;;;AAGD;AAAA;AAAA;AAGA;EACC;;AAEA;EACC;;AAG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;EACA;EACA;;AAEA;EAEC;;AAGD;EACC;EACA;;AAGD;EACC;;AACA;EACC;EACA;EACA;;AAMJ;EACC;EACA;;AAEA;EACC;EACA;;AAGD;EACC;;AAGD;EACC;;AACA;EACC;EACA;EACA;EACA;EACA;;AAGD;EACC;;;AAMJ;EACC;EACA;;AAEA;EACC;;;AHnHF;AAAA;AAAA;AIfA;AAAA;AAAA;AAIC;AAAA;AAAA;AAAA;EAIC;EACA;EACA;EACA;EACA;EACA;;;AAMD;EACC;;AAGD;EACC;EACA;;AAIA;EACC;EACA;EACA;;AAEA;EACC;;AAIF;EACC;;AAEA;EACC;;AAMF;EACC;EACA;EACA;EACA;EACA;;AAED;EACC;EACA;EACA;EACA;EACA;;;AJzCH;AAAA;AAAA;AKpBA;AAAA;AAAA;AAKC;EACC;;AAGE;EACI;;AAEP;EACO;;AAEN;EACC;EACS;EACT;EACS;;AAET;EACC;;AAGD;EACa;EACZ;;AAEA;AAAA;EAEC;;AAGD;EACC;EACA;;AAGD;EACC;EACA;;AAEA;AAAA;AAAA;EAGC;EACA;;AAKD;EACC;EACA;;AAED;EACC;EACA;;AAIF;AAAA;EAEC;EACA;EACA;EACA;;AAEA;AAAA;EACC;;AAED;AAAA;EACC;;AAIF;EACC;;AAGD;EACC;;AAGD;EACC;;AACA;EACC;EACA;EACA;;AAGD;EACC;EACA;;AAOL;EACC;EACA;;AAED;EACC;EACA;;AAGD;EACC;;;AAIF;EAEQ;IACI;IACA;IACA;IACA;IACA;IACA;IACA;;EAGJ;IACI;IACA;IACA;IACA;IACA;;EAEA;IACI;IACA;;;ALhHhB;AAAA;AAAA;AMzBA;AAAA;AAAA;AAIC;AAAA;EAEC;;AAGD;AAAA;EAEC;EACA;EACA;;AAGD;EACC;EACA;EACA;;AAGD;EACC;;AAGD;EACC;EACA;;AAEA;EACC;EACA;;AAIF;EACC;EACA;;AAEA;EACC;;AAGD;EACC;EACA;EACA;;AAEA;EACC;;AAKH;EACC;EACA;EACA;EACA;;AAGD;EACC;EACA;;AAIA;EACC;EACA;EACA;;AAGD;EACC;;AAGD;EACC;EACA;;AAGD;EACC;;AAGD;EACC;EACA;;AAGD;AAAA;EAEC;;AAGD;EACC;EACA;EACA;;AAGD;EACC;;AAGD;EACC;;AAKD;EACC;EACA;;AAEA;EACC;EACA;EACA;;AAEA;EACC;;AAGD;EACC;EACA;;AAGD;EACC;EACA;;AAKC;EACC;EACA;;AAGD;EACC;EACA;EACA;;AAMF;EACC;;AAMJ;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAIF;EACC;;AAIA;EACC;EACA;;AAIF;EACC;EACA;EACA;EACA;EACA;EACA;;;AAKD;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;;AAIF;EACC;IACC;IACA;IACA;;EAGD;IACC;IACA;IACA;;EAGD;AAAA;IAEC;IACA;IACA;;;ANnMF;AAAA;AAAA;AO9BA;EACI;;AAEA;EACI;;AAGJ;EACI;EACA;EACA;EACA;EACA;;AAEA;EACI;;AAEA;EACI;;AAIR;EACI;;AAGJ;EACI","file":"woocommerce.css"} \ No newline at end of file diff --git a/assets/sass/general-block-style.scss b/assets/sass/general-block-style.scss index a7438ac..0d61b2c 100644 --- a/assets/sass/general-block-style.scss +++ b/assets/sass/general-block-style.scss @@ -118,7 +118,15 @@ textarea { } select { + -webkit-appearance: none; + -moz-appearance: none; + background: transparent; + background-image: url("data:image/svg+xml;utf8,"); + background-repeat: no-repeat; + background-position: calc(100% - 10px) center; + padding-right: 40px !important; padding: 3px; + line-height: normal; } input[type="submit"], diff --git a/assets/sass/woocommerce/generic.scss b/assets/sass/woocommerce/generic.scss index 082c38b..213b651 100644 --- a/assets/sass/woocommerce/generic.scss +++ b/assets/sass/woocommerce/generic.scss @@ -301,6 +301,43 @@ Fix WooCommerce layout max-width introduced in version 7.2 max-width: var(--wp--style--global--content-size); } +.wc-block-components-form .wc-block-components-text-input label, +.wc-block-components-text-input label, +.wc-block-components-combobox .wc-block-components-combobox-control label.components-base-control__label, +.wc-block-components-form .wc-block-components-combobox .wc-block-components-combobox-control label.components-base-control__label { + font-size: 0.875em; +} + +.wc-block-components-form .wc-block-components-text-input input[type=email], +.wc-block-components-form .wc-block-components-text-input input[type=number], +.wc-block-components-form .wc-block-components-text-input input[type=tel], +.wc-block-components-form .wc-block-components-text-input input[type=text], +.wc-block-components-form .wc-block-components-text-input input[type=url], +.wc-block-components-text-input input[type=email], +.wc-block-components-text-input input[type=number], +.wc-block-components-text-input input[type=tel], +.wc-block-components-text-input input[type=text], +.wc-block-components-text-input input[type=url], +.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input, +.wc-block-components-form .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input { + font-size: var(--wp--preset--font-size--x-small); +} + +.wc-block-components-form .wc-block-components-text-input input:-webkit-autofill+label, +.wc-block-components-form .wc-block-components-text-input.is-active label, +.wc-block-components-text-input input:-webkit-autofill+label, +.wc-block-components-text-input.is-active label, +.wc-block-components-combobox.is-active .wc-block-components-combobox-control label.components-base-control__label, +.wc-block-components-combobox:focus-within .wc-block-components-combobox-control label.components-base-control__label, +.wc-block-components-combobox.is-active .wc-block-components-combobox-control label.components-base-control__label, +.wc-block-components-form .wc-block-components-combobox:focus-within .wc-block-components-combobox-control label.components-base-control__label { + transform: translateY(.5em) scale(.7) !important; +} + +.wc-block-components-validation-error p { + font-size: var(--wp--preset--font-size--x-small) !important; +} + /** Responsive */ diff --git a/functions.php b/functions.php index 53d62ed..9bf0885 100644 --- a/functions.php +++ b/functions.php @@ -34,3 +34,6 @@ // Backward compatibility. require_once get_theme_file_path( 'inc/backward-compatibility.php' ); + +// Block variations. +require_once get_theme_file_path( 'inc/registered-block-patterns-override.php' ); \ No newline at end of file diff --git a/inc/registered_block_patterns_override.php b/inc/registered-block-patterns-override.php similarity index 100% rename from inc/registered_block_patterns_override.php rename to inc/registered-block-patterns-override.php