Skip to content

Commit

Permalink
fix: fixing file-picker width as per Yinon comment (#423)
Browse files Browse the repository at this point in the history
* fixing file-picker width as per Yinon comment

* adding Yinon CR remark
  • Loading branch information
gullerya authored Nov 3, 2020
1 parent 2df736e commit 6611245
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 6 additions & 0 deletions components/file-picker/src/vwc-file-picker.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
@use '@vonage/vvd-typography/scss/typography' as typography;
@use '@vonage/vvd-foundation/scss/variable-names/color-semantic-variable-names' as color-semantic;

:host {
display: inline-block;
min-inline-size: 320px;
max-inline-size: 100%;
}

.input-file-slot::slotted(*) {
display: none;
}
Expand Down
12 changes: 8 additions & 4 deletions components/file-picker/stories/file-picker-events.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,14 @@ MultipleRestrictedChangeEvent.args = {
const TemplateWithForm = args => html`
<form @submit="${onSubmit}">
<div>This is an example of file-picker living in form</div>
<vwc-file-picker ...=${spread(args.self)}>
<input type="file" name="file-input" ...=${spread(args.input)}/>
<vwc-button slot="button" type="button" layout="filled" icon="upload" trailingIcon>Add Files</vwc-button>
</vwc-file-picker>
<hr>
<div>
<vwc-file-picker ...=${spread(args.self)}>
<input type="file" name="file-input" ...=${spread(args.input)}/>
<vwc-button slot="button" type="button" layout="filled" icon="upload" trailingIcon>Add Files</vwc-button>
</vwc-file-picker>
</div>
<hr>
<vwc-button layout="filled">Submit</vwc-button>
</form>
`;
Expand Down

0 comments on commit 6611245

Please sign in to comment.