Commit graph

123 commits

Author SHA1 Message Date
Amit Raj
400457befb
fix: CSS selector for price slider range input progress for LTR language (#2186) 2025-05-06 11:05:46 +02:00
Tung Du
5aadfcbc7d
Fix: different Add to Cart Button color inside products grid blocks between editor and front end. (#2066) 2022-11-09 08:45:36 +07:00
Daniel W. Robert
a21262ecbf
Stop theme defaults from overriding the Featured Item blocks text color (#2039)
* Add docblocks to hooks used in customizer class.

This resolves PHP linting errors.

* Omit feat items blocks from txt color selector

Confirmed that the featured items WooCommerce blocks are the only Woo
blocks with a dark overlay.

By omiting them from the ruleset that sets the default text color, we
allow the block to use it's set default of white text over the
background overlay, improving color contrast.

* Refactor to use :has() selector.

Instead of directly targeting the Featured Items blocks, we can use the
`:has()` selector to omit blocks that contain a child div with the
`has-background-dim` class in the editor.

Since browser support is not to where we need at the time of publishing
this, we can also add a temp fallback with `@supports`.

* Remove/resolve items from merge conflict.
2022-09-14 16:14:01 -04:00
Daniel W. Robert
c18cd6eef2
Add docblocks to hooks used in customizer class. (#2038)
* Add docblocks to hooks used in customizer class.

This resolves PHP linting errors.

* Fix spacing warnings

Minor update to fix `Equals sign not aligned correctly; expected 1 space
but found X spaces` warnings.
2022-09-09 15:59:13 -04:00
Job
ed2530f09d
Update Woo's default colour (#1769)
* Update default Woo colour

Woo's branding colour has changed to #7f54b3 so this commit fixes that.

* Update default colours in customizer
2021-08-26 14:54:50 +02:00
Ismail El Korchi
45bd1c3948
Remove deprecated functions (#1652) 2021-04-21 17:10:43 +01:00
Albert Juhé Lluveras
85402b4cbc
Add accent color to WC Blocks price slider (#1508)
* Add accent color to WC Blocks price slider

* Add IE11 styles

* Fix WC Blocks styles not visible in the editor
2020-11-02 19:13:44 +01:00
Tony Arcangelini
f33006acc7
Add more specificity to wp-block-cover (#1513)
* Add more specificity to wp-block-cover

Issue ⇢ https://github.com/woocommerce/storefront/issues/1487
Test site ⇢ https://woocommerce-shipping.mystagingwebsite.com/test/

The wp-block-cover for headings was superceeding the block editor CSS. Adding `:not(.has-text-color)` prevents this from applying to the heading blocks inside the cover.

* Update class-storefront-customizer.php
2020-10-22 12:39:11 +02:00
Rua Haszard
7bd2171866
reinstate phpcs php linting (#1463)
* update squizlabs/php_codesniffer and WP coding standards to latest

* revamp phpcs sniffer rulesets:
- update to php-compatibility (wimg is defunct)
- add version for woocommerce-sniffs

* streamline phpcs config (get it working at all):
- update min WP version to 5.3
- remove references to rules we don't have installed
  - WordPress.VIP
  - WordPress.XSS

* fix 2x phpcs errors (automatically via phpcbf)

* update phps ignore unescaped output comment to current format

* add npm scripts for php linter and linter autofixer

* auto-fix PHP linter errors using phpcbf :

Before phpcbf:

[x] PEAR      Functions           Function call signature multiple arguments          127
[x] Generic   White space         Disallow space indent spaces used                   10
[ ] WordPres  WP                  Enqueued resource parameters missing version        6
[ ] PHPCompa  Language construct  New language constructs t_ns_separator found        4
[ ] WordPres  Security            Escape output output not escaped                    4
[ ] PHPCompa  Parameter values    New HTMLEntities encoding default not set           2
[ ] WordPres  Date time           Restricted functions date_date                      2
[x] Generic   Files               End file newline not found                          1
[x] PEAR      Functions           Function call signature close bracket line          1
[x] PEAR      Functions           Function call signature content after open bracket  1
[x] Squiz     White space         Superfluous whitespace end line                     1
[x] WordPres  Arrays              Comma after array item no comma                     1

phpcbf fixed all [x] violations, all whitespace/formatting

After phpcbf:

WordPres  WP                  Enqueued resource parameters missing version      6
PHPCompa  Language construct  New language constructs t_ns_separator found      4
WordPres  Security            Escape output output not escaped                  4
PHPCompa  Parameter values    New HTMLEntities encoding default not set         2
WordPres  Date time           Restricted functions date_date                    2

Note - this commit does not include auto-fixed files with other
violations. These will follow in separate commit (after fixing!)

* fix phpcs violations:
- numerous formatting issues fixed automatically
- manually fix missing version param in calls to wp_enqueue_style

* fix phpcs violations:
- numerous formatting issues fixed automatically
- fix missing deps param in call to wp_enqueue_style

* update phpcs test php version to match min requirement (5.6)

* fix phpcs violations including some missing escaping:
- numerous formatting issues fixed automatically
- prefer gmdate() over potentially ambiguous date()
- escape output (a real issue!) of comment dates

* fix violations (all automated formatting fixes)

* reinstate WordPress rule/standard in phpcs.xml (minimise PR changes)

* exclude build (pre-zip) ./storefront & tighten excludes for dep folders

* bulk-update Security.EscapeOutput.OutputNotEscaped ignore comment:
- the previous comment format is no longer supported
- bulk replacing these to reduce phpcs warning overhead
2020-09-21 15:50:46 +01:00
Albert Juhé Lluveras
0a6f6092d4
Add Cart and Checkout block styles (#1412)
* Add custom styles for the Cart and Checkout blocks

* Change component button colors to button_alt

* Add button component state styles
2020-08-01 11:21:12 -04:00
haszari
7b5c202a52 ensure footer bar icon links use header link color, to match header bg:
- move footer bar override css rule after default footer link color rule
- use exact same specificity/not selectors so it's clear it's intended to override
2020-04-21 10:59:34 +12:00
Albert Juhé Lluveras
aa9200fea4
Honor background and font color in the editor (#1317)
* Honor background color in the editor

* Honor font color in the editor for WP 5.4
2020-04-20 11:50:47 +02:00
Seghir Nadir
001c3a4324
Apply suggestions from code review
Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>
2020-02-20 10:35:06 +01:00
Niels Lange
bf8010ae66
Customizer: Adjust footer heading and link color 2020-02-17 18:19:26 +07:00
Mike Jolley
26bd8365b6 Introduce extra block styles 2019-08-02 12:42:56 +01:00
Tiago Noronha
a2b978458f Add support for table block color styles 2019-06-18 00:02:21 +01:00
Tiago Noronha
b841092f8e Remove active callback from hero typography options 2019-05-08 18:16:48 +01:00
Tiago Noronha
1daf7f9a95 Wrong customizer color used for hero headings 2019-05-07 11:14:06 +01:00
Tiago Noronha
87776b582d Move Gutenberg assets to Gutenberg hooks 2019-05-02 11:58:04 +01:00
Tiago Noronha
1a7710b112
Merge pull request #1096 from woocommerce/tweak/cover-block-5-2
WP 5.2 cover block + Blocks Homepage
2019-04-22 19:23:08 +02:00
Tiago Noronha
fecce20640 Add focus color override to all input methods 2019-04-15 16:45:45 +01:00
Tiago Noronha
d72ab2d744 Dynamic colors for cover block headings 2019-04-04 19:01:26 +01:00
Tiago Noronha
fd25d0d6a7 Standardize mixing of static/non static function calls 2019-01-04 17:12:51 +00:00
Tiago Noronha
4750bb08e3 Remove unused variables 2018-12-12 18:24:06 +00:00
Tiago Noronha
04eb2f26a4 Remove hardcoded color values and use values from customizer instead 2018-12-12 17:58:43 +00:00
Tiago Noronha
0278058a0b Remove colors from editor blocks stylesheet 2018-12-11 10:52:13 +00:00
Tiago Noronha
f3b696c616 Method incorrectly defined as static 2018-12-06 16:29:47 +00:00
Tiago Noronha
ee4f843e9e Update docblock 2018-12-05 15:38:51 +00:00
Tiago Noronha
884ac6dd27 Adds Gutenberg editor styles 2018-12-05 15:27:36 +00:00
Tiago Noronha
536adda11b Remove unused variable 2018-11-22 17:42:25 +00:00
Tiago Noronha
0428353d33 phpcs 2018-11-22 16:55:37 +00:00
Tiago Noronha
efe46e8cc6 Fix merge conflict 2018-11-22 16:55:19 +00:00
Tiago Noronha
0c5a9e23ab Coding standard violations - automatic corrections 2018-11-21 11:52:42 +00:00
Tiago Noronha
b069a00d46 Add support for table block styles 2018-11-04 15:10:45 +00:00
Tiago Noronha
656b044784 Add Gutenberg Customizer CSS 2018-11-04 14:54:03 +00:00
Tiago Noronha
cc239cef98 Make posts post meta full width 2018-10-31 15:29:14 +00:00
Tiago Noronha
ce6ddec2ba Handheld navigation dropdown toggle color 2018-07-11 16:44:58 +01:00
Tiago Noronha
169c21e35a Fix PHPCS violations 2018-06-22 15:11:39 +01:00
Tiago Noronha
2bdcb08d00 Remove @author tag 2018-06-20 09:58:39 +01:00
Tiago Noronha
ebc504730b WooCommerce customizer class file 2018-06-05 18:09:23 +01:00
Tiago Noronha
18a966db26 Update author from WooThemes to Automattic 2018-06-05 11:02:45 +01:00
Tiago Noronha
36212c22f7 Move feature declaration 2018-06-05 10:53:32 +01:00
Tiago Noronha
33a003bcff Remove inline CSS cache 2018-05-10 15:27:12 +01:00
Tiago Noronha
bd220d50e5 Set defaults for sticky add-to-cart and product pagination 2018-04-27 19:03:52 +01:00
Tiago Noronha
3069cf9cff Resolve merge conflcit 2018-04-20 11:55:44 +01:00
Tiago Noronha
4129dee517 Resolve merge conflcit 2018-04-20 11:16:52 +01:00
Tiago Noronha
49764a1499 Add customizer control to toggle Product Pagination 2018-04-17 19:16:06 +01:00
Tiago Noronha
9affabc33c Add customizer control to toggle Sticky Add-To-Cart 2018-04-17 18:59:10 +01:00
Tiago Noronha
b5d14ef898 Controls only apply to homepage when a featured image is set 2018-04-03 17:04:50 +01:00
Tiago Noronha
35a575c4ab Conditionally display homepage template 2018-04-03 16:39:29 +01:00