Skip to content

Commit 54ed13d

Browse files
committed
feat: [FSET-1033] added form validation, rating design, success alert
1 parent c63144d commit 54ed13d

File tree

5 files changed

+236
-40
lines changed

5 files changed

+236
-40
lines changed

package-lock.json

Lines changed: 22 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/pages/feedback/feedback.css

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,66 @@
33
display: grid;
44
justify-content: center;
55
}
6+
7+
.rating-column {
8+
display: flex;
9+
justify-content: center;
10+
}
11+
.rating-message {
12+
display: block;
13+
text-align: center;
14+
margin-bottom: 16px;
15+
}
16+
.error {
17+
border: 1px solid red;
18+
}
19+
20+
ion-textarea {
21+
--padding-start: 12px;
22+
}
23+
24+
.rate-area {
25+
float: left;
26+
display: revert;
27+
padding: 0px;
28+
border-style: none;
29+
margin-bottom: 0px;
30+
}
31+
32+
.rate-area:not(:checked) > input {
33+
position: absolute;
34+
top: -9999px;
35+
clip: rect(0, 0, 0, 0);
36+
}
37+
38+
.rate-area:not(:checked) > ion-label {
39+
float: right;
40+
width: 1em;
41+
overflow: hidden;
42+
white-space: nowrap;
43+
cursor: pointer;
44+
font-size: 180%;
45+
color: lightgrey;
46+
}
47+
48+
.rate-area:not(:checked) > ion-label:before {
49+
content: "★";
50+
}
51+
52+
.rate-area > input:checked ~ ion-label {
53+
color: gold;
54+
}
55+
56+
.rate-area:not(:checked) > ion-label:hover,
57+
.rate-area:not(:checked) > ion-label:hover ~ ion-label {
58+
color: gold;
59+
}
60+
61+
.rate-area > input:checked + ion-label:hover,
62+
.rate-area > input:checked + ion-label:hover ~ ion-label,
63+
.rate-area > input:checked ~ ion-label:hover,
64+
.rate-area > input:checked ~ ion-label:hover ~ ion-label,
65+
.rate-area > ion-label:hover ~ input:checked ~ ion-label {
66+
color: gold;
67+
}
68+

0 commit comments

Comments
 (0)