Skip to content

Commit cd8468f

Browse files
authored
Merge branch 'develop' into feature/439-theme-url
2 parents 9115a7d + 1e68fa8 commit cd8468f

File tree

44 files changed

+11656
-3331
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+11656
-3331
lines changed

.env.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ MYSQL_PASSWORD=wordpress
88
WP_VERSION=5.6
99
WP_DB_USER=wordpress
1010
WP_DB_PASSWORD=wordpress
11+
12+
# PHP
13+
PHP_VERSION=php7.4-apache

.stylelintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"no-descending-specificity": null,
88
"no-duplicate-selectors": null,
99
"number-leading-zero": null,
10+
"selector-class-pattern": null,
1011
"selector-type-no-unknown": [ true, { "ignore": ["custom-elements"] } ],
1112
"at-rule-no-unknown": [ true, { "ignoreAtRules": ["mixin"] } ]
1213
}

.travis.yml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ jobs:
8686
php: "7.4"
8787
env: NODE_ENV=teste2e COVERALLS_REPO_TOKEN=$CR_TOKEN
8888
before_install:
89+
- unset PUPPETEER_SKIP_CHROMIUM_DOWNLOAD
8990
- nvm install
9091
- nvm use
91-
- unset PUPPETEER_SKIP_CHROMIUM_DOWNLOAD
92+
- set PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
9293
before_script:
9394
- sudo service mysql stop
9495
- echo "Running E2E tests with code coverage ..."
@@ -98,9 +99,29 @@ jobs:
9899
- docker-compose exec mysql bash -c "chown -R mysql:mysql /var/lib/mysql"
99100
- npm run wp -- wp core install --title=WordPress --admin_user=admin --admin_password=password --admin_email=admin@example.com --skip-email --url=http://localhost:8088
100101
- npm run wp -- wp plugin activate material-design
101-
- sudo chown -R travis:travis tests # ensure coverage folder can be created
102+
- sudo chown -R travis:travis tests node_modules # ensure coverage folder can be created
102103
- npm run test:e2e:coveralls
103104

105+
- name: E2E tests with Docker (7.3, WordPress 5.2)
106+
php: "7.3"
107+
env: NODE_ENV=teste2e PHP_VERSION=php7.3-apache WP_VERSION=5.2
108+
before_install:
109+
- unset PUPPETEER_SKIP_CHROMIUM_DOWNLOAD
110+
- nvm install
111+
- nvm use
112+
- set PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
113+
before_script:
114+
- sudo service mysql stop
115+
- echo "Running E2E tests"
116+
script:
117+
- npm run env:start
118+
- docker-compose exec wordpress bash -c "chown -R www-data:www-data /var/www/html/wp-content/" # ensure WP folders have correct permissions
119+
- docker-compose exec mysql bash -c "chown -R mysql:mysql /var/lib/mysql"
120+
- npm run wp -- wp core install --title=WordPress --admin_user=admin --admin_password=password --admin_email=admin@example.com --skip-email --url=http://localhost:8088
121+
- npm run wp -- wp plugin activate material-design
122+
- sudo chown -R travis:travis tests node_modules
123+
- npm run test:e2e
124+
104125
- name: JS unit tests (7.4, WordPress latest, with code coverage)
105126
php: "7.4"
106127
env: COVERALLS_REPO_TOKEN=$CR_TOKEN
@@ -130,13 +151,13 @@ jobs:
130151
php: "7.1"
131152
env: WP_VERSION=latest DEV_LIB_ONLY=phpunit
132153

133-
- name: PHP unit tests (7.0, WordPress 5.1)
154+
- name: PHP unit tests (7.0, WordPress 5.3)
134155
php: "7.0"
135-
env: WP_VERSION=5.1 DEV_LIB_ONLY=phpunit
156+
env: WP_VERSION=5.3 DEV_LIB_ONLY=phpunit
136157

137-
- name: PHP unit tests (5.6, WordPress 5.0)
158+
- name: PHP unit tests (5.6, WordPress 5.2)
138159
php: "5.6"
139-
env: WP_VERSION=5.0 DEV_LIB_ONLY=phpunit
160+
env: WP_VERSION=5.2 DEV_LIB_ONLY=phpunit
140161

141162
- name: PHP unit tests (7.4, WordPress trunk)
142163
php: "7.4"

assets/css/src/customize-controls.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,10 @@
325325

326326
& span {
327327
font-size: 13px;
328+
329+
&.dashicons {
330+
font-size: 20px;
331+
}
328332
}
329333

330334
&.control-settings-expanded {

assets/css/src/overrides.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,22 @@ html {
6262
@mixin typography body1, 1, 1.5, 400, *;
6363
@mixin typography body2, 0.875, 1.25, 400, *;
6464

65-
/* Additional selectors requiring typoghraphy styles */
65+
/* Additional selectors requiring typography styles */
66+
@mixin selector-typography .mdc-button, button, 0.875, 2.25, 500;
67+
@mixin selector-typography .mdc-button .mdc-button__label, button, 0.875, 2.25, 500;
6668
@mixin selector-typography .mdc-list-item__primary-text, body1, 1, 1.5, 400;
6769
@mixin selector-typography .mdc-list-item__secondary-text, body2, 0.875, 1.25, 400;
6870

71+
/* Material Design Icons */
72+
.material-icons {
73+
font-family: var(--mdc-icons-font-family) !important;
74+
font-weight: normal;
75+
font-size: 24px;
76+
font-style: normal;
77+
line-height: 1 !important;
78+
letter-spacing: normal;
79+
}
80+
6981
/* Button */
7082
.mdc-button {
7183
box-shadow: none !important;
@@ -90,6 +102,10 @@ html {
90102
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12) !important;
91103
transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
92104
}
105+
106+
& .mdc-button__icon {
107+
font-size: 18px !important;
108+
}
93109
}
94110

95111
.mdc-button--outlined:not(:disabled) {

assets/images/baseline.svg

Lines changed: 69 additions & 70 deletions
Loading

0 commit comments

Comments
 (0)