This repository was archived by the owner on Nov 29, 2022. It is now read-only.
File tree 4 files changed +19
-6
lines changed
4 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,16 @@ Future Todo List
8
8
- Make typography and utility classes silent extenders (so that they can be extended by components without importing all utility classes).
9
9
- Update to use latest v2 PIE design tokens
10
10
11
+ v10.3.0
12
+ ------------------------------
13
+ * September 26, 2022*
14
+
15
+ ### Added
16
+ - Variables ` $star-icon-path--filled ` & ` $star-icon-path--empty ` .
17
+
18
+ ### Changed
19
+ - ` ratings ` optional component to read from variables file for consuming applications to set custom paths for svg star icons.
20
+
11
21
12
22
v10.2.0
13
23
------------------------------
Original file line number Diff line number Diff line change 2
2
"name" : " @justeat/fozzie" ,
3
3
"title" : " Fozzie – Just Eat UI Web Framework" ,
4
4
"description" : " UI Web Framework for the Just Eat Global Platform" ,
5
- "version" : " 10.2 .0" ,
5
+ "version" : " 10.3 .0" ,
6
6
"main" : " dist/js/index.js" ,
7
7
"files" : [
8
8
" dist/js" ,
Original file line number Diff line number Diff line change 1
1
@use ' ../../tools/mixins/type' ;
2
2
@use ' ../../tools/mixins/ratings' ;
3
+ @use ' ../../settings/variables' as v ;
3
4
4
5
@mixin rating () {
5
6
/* *
22
23
$star-size--large : 42px ;
23
24
24
25
.c-rating {
25
- @extend %c -icon--star-- empty !optional ;
26
+ background-image : inline ( #{ v . $star -icon-path-- empty} ) ;
26
27
background-repeat : repeat-x ;
27
28
display : inline-block ;
28
29
height : $star-size--default ;
125
126
}
126
127
127
128
.c-rating--fill {
128
- @extend %c -icon--star--fill !optional ;
129
+ background-image : inline ( #{ v . $star -icon-path--filled } ) ;
129
130
vertical-align : top ;
130
131
background-repeat : repeat-x ;
131
132
display : inline-block ;
149
150
& :checked {
150
151
& + label ,
151
152
& ~ input + label {
152
- @extend %c -icon--star--fill !optional ;
153
+ background-image : inline ( #{ v . $star -icon-path--filled } ) ;
153
154
}
154
155
}
155
156
}
165
166
.c-icon--star {
166
167
display : block ;
167
168
cursor : pointer ;
168
- @extend %c -icon--star-- empty !optional ;
169
+ background-image : inline ( #{ v . $star -icon-path-- empty} ) ;
169
170
@extend %u-hideText ;
170
171
171
172
& :hover ,
172
173
& :hover ~ label {
173
- @extend %c -icon--star--fill !optional ;
174
+ background-image : inline ( #{ v . $star -icon-path--filled } ) ;
174
175
}
175
176
}
176
177
Original file line number Diff line number Diff line change @@ -128,6 +128,8 @@ $img-path-url : '/assets/img' !default; // Usage: background: url('
128
128
$icon-path : ' #{$img-path } /icons' !default ;
129
129
$font-path : ' dist/fonts' !default ;
130
130
131
+ $star-icon-path--filled : ' #{$icon-path } /stars/star--filled.svg' !default ;
132
+ $star-icon-path--empty : ' #{$icon-path } /stars/star--empty.svg' !default ;
131
133
132
134
// App-specific variables
133
135
// ==========================================================================
You can’t perform that action at this time.
0 commit comments