Skip to content
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

Merged
merged 6 commits into from
Apr 15, 2022

Conversation

hitendreamworld
Copy link
Member

No description provided.

dw-form-field.js Outdated

export class DwFormField extends Formfield {
static get styles() {
return [
Formfield.styles,
css`
:host {
display: block;
display: inline-block;
Copy link
Member

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,
Copy link
Member

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}"
Copy link
Member

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

@hitendreamworld hitendreamworld changed the title feat: START add support to render label feat: add support to render label in slot area Apr 7, 2022
@ChiragMoradiya ChiragMoradiya merged commit 455a950 into master Apr 15, 2022
@ChiragMoradiya ChiragMoradiya deleted the feature/update-form-field branch April 15, 2022 11:21
@dw-devops
Copy link

🎉 This PR is included in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants