-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update and add form components #75
Conversation
e60ecbb
to
7891d6c
Compare
947db39
to
020efb4
Compare
Any chance we could include this component on either |
bc4b2ca
to
e72f317
Compare
Added here e72f317 |
Date pickerSome smaller points first:
Now, zooming out to the content. There is a load of CSS in the mixin at the moment, including the form styling, legends, etc. Can you remove all of this as it's just duplicated? The HTML in the markdown file isn't really in line with the other form HTML we have in the design system (it looks more like the old base theme HTML to me). I think this can be simplified to: <div class="ds-scope site-resizer">
<div class="ds-date">
<div class="ds-field">
<label for="day_0">Day</label>
<input type="number" name="day_0" value="12" required="" id="id_date-date_0">
</div>
<div class="ds-field">
<label for="month_1">Month</label>
<input type="number" name="month_1" value="12" required="" id="id_date-date_1">
</div>
<div class="ds-field">
<label for="year_2">Year</label>
<input type="number" name="year_2" value="2025" required="" id="id_date-date_2">
</div>
</div>
</div> That is, wrapping a load of In turn, the ds-date can be reduced to: @mixin date-form {
@extend %ds-cluster;
.ds-date {
.ds-field {
input {
margin: 10px 15px 5px 0;
border: 2px solid $black;
padding: $s1;
max-width: 5em;
color:$black;
}
&:last-child input {
max-width: 6em;
}
}
}
} Not that I'm extending from I'm also targeting the |
6376d06
to
122b223
Compare
Thanks for taking the time to break this down. I had overlooked the possibility if extending an existing component so will bear that in mind next time we have a need for a new component. All your edits should now be addressed in 7297850. |
7ad8b87
to
8a20b15
Compare
c980896
to
ade602a
Compare
703838a
to
49a5d19
Compare
49a5d19
to
656a94e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor comment, but this looks good to me!
Thanks for adding the docs about making a new component too 👍
@@ -0,0 +1,17 @@ | |||
@mixin date-picker { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor, but can you fix the indentation on this file?
7ae7412
to
afc09d9
Compare
Ref https://trello.com/c/lhcjgP0s/3121-review-chriss-ee-design-feedback and #74
This work:
code
These changes have been tested in EE per screenshots above.