From 3f4222e5e42abf20d58844d4f089cb13846d8c56 Mon Sep 17 00:00:00 2001 From: Conor Wright Date: Wed, 7 Mar 2018 17:17:05 -0500 Subject: [PATCH 1/5] Resolving Card action bar still visable after hiding with *ngIf #1421 --- src/modules/card/card-actions.component.scss | 7 +++++++ src/modules/card/card-actions.component.ts | 1 + src/modules/card/card.component.scss | 2 -- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 src/modules/card/card-actions.component.scss diff --git a/src/modules/card/card-actions.component.scss b/src/modules/card/card-actions.component.scss new file mode 100644 index 000000000..3027c1729 --- /dev/null +++ b/src/modules/card/card-actions.component.scss @@ -0,0 +1,7 @@ +@import "../../scss/mixins"; + +:host { + display: block; + @include sky-border(light, top); + padding: $sky-padding-3_4 0; +} \ No newline at end of file diff --git a/src/modules/card/card-actions.component.ts b/src/modules/card/card-actions.component.ts index aa955f173..7b6db7f03 100644 --- a/src/modules/card/card-actions.component.ts +++ b/src/modules/card/card-actions.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sky-card-actions', + styleUrls: ['./card-actions.component.scss'], templateUrl: '../shared/simple-content.html' }) export class SkyCardActionsComponent { } diff --git a/src/modules/card/card.component.scss b/src/modules/card/card.component.scss index 21a48c63e..5d6759ed6 100644 --- a/src/modules/card/card.component.scss +++ b/src/modules/card/card.component.scss @@ -88,10 +88,8 @@ } .sky-card-actions { - @include sky-border(light, top); bottom: 0; flex-shrink: 0; - padding: $sky-padding-3_4 0; text-align: center; .sky-context-menu-btn { From a450054956bfa0efa21c71481ea49e9f82c22f08 Mon Sep 17 00:00:00 2001 From: Conor Wright Date: Thu, 8 Mar 2018 10:46:26 -0500 Subject: [PATCH 2/5] Addressed PR style comments --- src/modules/card/card-actions.component.scss | 8 ++++---- src/modules/card/card-actions.component.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/card/card-actions.component.scss b/src/modules/card/card-actions.component.scss index 3027c1729..402369a03 100644 --- a/src/modules/card/card-actions.component.scss +++ b/src/modules/card/card-actions.component.scss @@ -1,7 +1,7 @@ @import "../../scss/mixins"; :host { - display: block; - @include sky-border(light, top); - padding: $sky-padding-3_4 0; -} \ No newline at end of file + display: block; + @include sky-border(light, top); + padding: $sky-padding-3_4 0; +} diff --git a/src/modules/card/card-actions.component.ts b/src/modules/card/card-actions.component.ts index 7b6db7f03..e23730367 100644 --- a/src/modules/card/card-actions.component.ts +++ b/src/modules/card/card-actions.component.ts @@ -2,7 +2,7 @@ import { Component } from '@angular/core'; @Component({ selector: 'sky-card-actions', - styleUrls: ['./card-actions.component.scss'], - templateUrl: '../shared/simple-content.html' + templateUrl: '../shared/simple-content.html', + styleUrls: ['./card-actions.component.scss'] }) export class SkyCardActionsComponent { } From 11e43d54a77d23b0f9d96c3f7e1b4e91a77767dd Mon Sep 17 00:00:00 2001 From: Conor Wright Date: Fri, 22 Jun 2018 08:43:06 -0400 Subject: [PATCH 3/5] added aria label to input directive --- src/modules/datepicker/datepicker-input.directive.ts | 8 +++++++- src/modules/datepicker/datepicker.component.html | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/modules/datepicker/datepicker-input.directive.ts b/src/modules/datepicker/datepicker-input.directive.ts index 2cace17c0..aa95761f7 100644 --- a/src/modules/datepicker/datepicker-input.directive.ts +++ b/src/modules/datepicker/datepicker-input.directive.ts @@ -8,7 +8,8 @@ import { Renderer, ElementRef, SimpleChanges, - OnChanges + OnChanges, + HostBinding } from '@angular/core'; import { @@ -61,6 +62,10 @@ export class SkyDatepickerInputDirective implements public pickerChangedSubscription: Subscription; + @HostBinding('attr.aria-label') + @Input() + public ariaLabel: string; + @Input() public skyDatepickerInput: SkyDatepickerComponent; @@ -98,6 +103,7 @@ export class SkyDatepickerInputDirective implements this.writeValue(newDate); this._onChange(newDate); }); + this.ariaLabel = this.ariaLabel || 'Date input field. Uses format: ' + this.dateFormat; } public ngOnDestroy() { diff --git a/src/modules/datepicker/datepicker.component.html b/src/modules/datepicker/datepicker.component.html index 6f2192d10..e9648416b 100644 --- a/src/modules/datepicker/datepicker.component.html +++ b/src/modules/datepicker/datepicker.component.html @@ -4,8 +4,9 @@