-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: add support to render label in slot area #36
Conversation
513e996
to
1a72b9e
Compare
dw-form-field.js
Outdated
|
||
export class DwFormField extends Formfield { | ||
static get styles() { | ||
return [ | ||
Formfield.styles, | ||
css` | ||
:host { | ||
display: block; | ||
display: inline-block; |
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.
Why display is changed to inline-block
, we planned that we don't use inline-block
in any new code, though?
reflect: true | ||
} | ||
} | ||
reflect: true, |
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.
this and following 2 lines changes seems extra, please avoid such extra changes.
dw-form-field.js
Outdated
|
||
_renderLabel() { | ||
if (this.label) { | ||
return html`<label class="mdc-label" @click="${this._labelClick}" |
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 kind of formatting standards do you follow? Here, >
is on the next line, same this happens for the closing tag. We need to meet once to learn & conclude formatting standards for HTML
🎉 This PR is included in version 3.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.