Skip to content

Commit 35ddd8b

Browse files
author
Sebastian Thulin
committed
fix: remove ripple, add mask
1 parent b21440d commit 35ddd8b

2 files changed

Lines changed: 34 additions & 30 deletions

File tree

source/php/Component/Logotype/Logotype.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ public function init() {
2020
$this->data['alt'] = $this->data['caption'];
2121
}
2222

23-
//Has ripple
24-
if($hasRipple) {
25-
$this->data['classList'][] = "ripple";
26-
$this->data['classList'][] = "ripple--before";
23+
//Mask the logotype if mask is set to true
24+
if($mask) {
25+
$this->data['classList'][] = $this->getBaseClass() . "--mask";
2726
}
2827
}
2928
}
Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,33 @@
11
{
2-
"slug": "logotype",
3-
"default": {
4-
"src": false,
5-
"alt": "",
6-
"caption": "",
7-
"title": "",
8-
"placeholderText": "Image missing",
9-
"hasRipple": true
10-
},
11-
"description": {
12-
"src": "A image source",
13-
"alt": "Alt text for the image",
14-
"caption": "A label below the logotype. eg company name",
15-
"title": "A title (not displayed)",
16-
"placeholderText": "What to show if an invalid url is entered.",
17-
"hasRipple": "Enable / disable ripple fx"
18-
},
19-
"view": "logotype.blade.php",
20-
"dependency": {
21-
"sass": {
22-
"components": [
23-
"logotype",
24-
"image"
25-
]
26-
}
27-
}
2+
"slug": "logotype",
3+
"default": {
4+
"src": false,
5+
"alt": "",
6+
"caption": "",
7+
"title": "",
8+
"placeholderText": "Image missing",
9+
"mask": false
10+
},
11+
"description": {
12+
"src": "A image source",
13+
"alt": "Alt text for the image",
14+
"caption": "A label below the logotype. eg company name",
15+
"title": "A title (not displayed)",
16+
"placeholderText": "What to show if an invalid url is entered.",
17+
"mask": "Mask logotype with contrast color."
18+
},
19+
"types": {
20+
"src": "string|boolean",
21+
"alt": "string",
22+
"caption": "string",
23+
"title": "string",
24+
"placeholderText": "string",
25+
"mask": "boolean"
26+
},
27+
"view": "logotype.blade.php",
28+
"dependency": {
29+
"sass": {
30+
"components": ["logotype", "image"]
31+
}
32+
}
2833
}

0 commit comments

Comments
 (0)