chore: added yarn-error.log to .gitignore

This commit is contained in:
Thijs Louisse 2019-05-15 17:05:10 +02:00 committed by Thomas Allmer
parent 9b110ca0f9
commit 73ad0bdebb
3 changed files with 5 additions and 6 deletions

3
.gitignore vendored
View file

@ -7,9 +7,10 @@
## system files
.DS_Store
## npm
## npm/yarn
node_modules/
npm-debug.log
yarn-error.log
# we do prefer yarn.lock so we do not want npms version of it
/package-lock.json

View file

@ -151,7 +151,6 @@ export class LionInputDatepicker extends LionInputDate {
constructor() {
super();
// Create a unique id for the invoker, since it is placed in light dom for a11y.
this.__invokerId = this.__createUniqueIdForA11y();
this._calendarInvokerSlot = 'suffix';
@ -272,7 +271,7 @@ export class LionInputDatepicker extends LionInputDate {
// eslint-disable-next-line class-methods-use-this
_invokerTemplate() {
// TODO: aria-expanded should be toggled by Overlay system, to allow local overlays
// (a.k.a. dropdowns) as well
// (a.k.a. dropdowns) as well. Important: will be breaking for subclassers
return html`
<button
@click="${this.__openCalendarOverlay}"
@ -287,7 +286,6 @@ export class LionInputDatepicker extends LionInputDate {
`;
}
// Renders the invoker button + the calendar overlay invoked by this button
__createPickerAndReturnInvokerNode() {
const renderParent = document.createElement('div');
render(this._invokerTemplate(), renderParent);

View file

@ -25,10 +25,10 @@ storiesOf('Forms|Input Datepicker', module)
`,
)
.add(
'disabledDatesValidator',
'isDateDisabledValidator',
() => html`
<lion-input-datepicker
label="disabledDates"
label="isDateDisabled"
help-text="You're not allowed to choose the 15th"
.errorValidators=${[isDateDisabledValidator(d => d.getDate() === 15)]}
>