-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(MdField): new field variants (#1545)
* feat(MdField) Field Variants * docs(MdField) Field Variants * fix issues with the theme colors
- Loading branch information
1 parent
b19f6f0
commit f2347f1
Showing
7 changed files
with
1,601 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
docs/app/pages/Components/Input/examples/AppBarNested.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<template> | ||
<div> | ||
<md-toolbar class="md-primary"> | ||
<div class="md-toolbar-row"> | ||
<div class="md-toolbar-section-start"> | ||
<md-button class="md-icon-button"> | ||
<md-icon>menu</md-icon> | ||
</md-button> | ||
</div> | ||
|
||
<md-field class="search" md-nested md-clearable> | ||
<md-icon>search</md-icon> | ||
<label>Search...</label> | ||
<md-input v-model="normal"></md-input> | ||
</md-field> | ||
|
||
<div class="md-toolbar-section-end"> | ||
<md-button class="md-icon-button"> | ||
<md-icon>refresh</md-icon> | ||
</md-button> | ||
|
||
<md-button class="md-icon-button"> | ||
<md-icon>more_vert</md-icon> | ||
</md-button> | ||
</div> | ||
</div> | ||
</md-toolbar> | ||
|
||
<md-toolbar class="md-primary"> | ||
<div class="md-toolbar-row"> | ||
<div class="md-toolbar-section-start"> | ||
<md-button class="md-icon-button"> | ||
<md-icon>menu</md-icon> | ||
</md-button> | ||
</div> | ||
|
||
<md-field class="search" md-variant="box" md-nested md-clearable> | ||
<md-icon>search</md-icon> | ||
<label>Search...</label> | ||
<md-input v-model="box"></md-input> | ||
</md-field> | ||
|
||
<div class="md-toolbar-section-end"> | ||
<md-button class="md-icon-button"> | ||
<md-icon>refresh</md-icon> | ||
</md-button> | ||
|
||
<md-button class="md-icon-button"> | ||
<md-icon>more_vert</md-icon> | ||
</md-button> | ||
</div> | ||
</div> | ||
</md-toolbar> | ||
|
||
<md-toolbar class="md-primary"> | ||
<div class="md-toolbar-row"> | ||
<div class="md-toolbar-section-start"> | ||
<md-button class="md-icon-button"> | ||
<md-icon>menu</md-icon> | ||
</md-button> | ||
</div> | ||
|
||
<md-field class="search" md-variant="raised" md-nested md-clearable> | ||
<md-icon>search</md-icon> | ||
<label>Search...</label> | ||
<md-input v-model="raised"></md-input> | ||
</md-field> | ||
|
||
<div class="md-toolbar-section-end"> | ||
<md-button class="md-icon-button"> | ||
<md-icon>refresh</md-icon> | ||
</md-button> | ||
|
||
<md-button class="md-icon-button"> | ||
<md-icon>more_vert</md-icon> | ||
</md-button> | ||
</div> | ||
</div> | ||
</md-toolbar> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'AppBsrNested', | ||
data: () => ({ | ||
normal: null, | ||
box: null, | ||
raised: null | ||
}) | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.md-toolbar + .md-toolbar { | ||
margin-top: 24px; | ||
} | ||
.search { | ||
max-width: 500px; | ||
} | ||
</style> |
48 changes: 48 additions & 0 deletions
48
docs/app/pages/Components/Input/examples/FieldVariations.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<template> | ||
<div> | ||
<md-field md-variant="bottom-line"> | ||
<label>Bottom Line</label> | ||
<md-input v-model="normal"></md-input> | ||
</md-field> | ||
|
||
<md-field md-variant="box"> | ||
<label>Box</label> | ||
<md-input v-model="box"></md-input> | ||
</md-field> | ||
|
||
<md-field md-variant="raised"> | ||
<label>Raised (Inline Only)</label> | ||
<md-input v-model="raised"></md-input> | ||
</md-field> | ||
|
||
<md-field md-variant="bottom-line" md-dense> | ||
<label>Bottom Line with dense</label> | ||
<md-input v-model="normalDense"></md-input> | ||
</md-field> | ||
|
||
<md-field md-variant="box" md-dense> | ||
<label>Box with dense</label> | ||
<md-input v-model="boxDense"></md-input> | ||
</md-field> | ||
|
||
<md-field md-variant="raised" md-dense> | ||
<label>Raised (Inline Only)</label> | ||
<md-input v-model="raisedDense"></md-input> | ||
</md-field> | ||
|
||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'FieldVariations', | ||
data: () => ({ | ||
normal: null, | ||
box: null, | ||
raised: null, | ||
normalDense: null, | ||
boxDense: null, | ||
raisedDense: null | ||
}) | ||
} | ||
</script> |
Oops, something went wrong.
f2347f1
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 was reverted. Due to the new changes on Material Design guidelines this will no longer be applied.
f2347f1
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 was reverted. Due to the new changes on Material Design guidelines, this will no longer be applied.