-
Notifications
You must be signed in to change notification settings - Fork 57
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
EZP-29635: Styled labels in Admin Panel Edit views #632
EZP-29635: Styled labels in Admin Panel Edit views #632
Conversation
.ez-card { | ||
.form-group, | ||
.ez-card--fieldtype-container { | ||
.ez-label { |
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.
What do you think about making it a generic class. I mean not nested inside another classes.
Just something like this:
.ez-label {
margin-bottom: 0;
font-weight: 700;
&:after {
content: ': ';
}
}
They same rule I would apply for the .required
class.
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.
It would be great (I considered that option too). It will simplify more the process.
Updated based on review. Still facing issues here: |
@inakijv what are these issues you mentioned? |
@sunpietro two views still need styling (I need suggestions/help on how to get them):
|
@@ -60,6 +60,28 @@ | |||
} | |||
} | |||
|
|||
.ez-label { |
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.
If this is a separate component it should be in different file _label.scss
.
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.
Ok.
Updated based on review. |
} | ||
} | ||
|
||
.ez-label.checkbox-inline, |
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.
It should go inside the .ez-label {
declaration like this: &.checkbox-inline
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.
Ok.
} | ||
|
||
.ez-label.checkbox-inline, | ||
.ez-label.form-check-label { |
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.
It should go inside the .ez-label {
declaration like this: &.form-check-label
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.
Ok.
} | ||
} | ||
|
||
.ez-label.form-check-label:not(.checkbox-inline) { |
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.
If you follow my suggestions above, then it should be placed inside the &.form-check-label {
selector, like this: &:not(.checkbox-inline)
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.
Perfect. Thanks.
Updated based on review. |
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.
Most important aspects:
ez-label
, as well as adding a specific class for the view,ez-admin-edit
;-> Content type specific Edit view for field type
ezdatetime
: Year, Month, Day, Minute, Second;-> Roles specific Edit view
limitation
group.Would need help _>
-> Content type specific Edit view for field type
ezdatetime
: Year, Month, Day, Minute, Second;-> Roles specific Edit view
limitation
group.Checklist:
$ composer fix-cs
)