Skip to content

Commit

Permalink
feat(design): add deprecation notice for DaffButtonSetComponent (#2571)
Browse files Browse the repository at this point in the history
  • Loading branch information
xelaint committed Sep 25, 2023
1 parent c1574ee commit 1ef3e46
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/demo/src/app/core/footer/footer.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ <h3 daffListSubheader>{{ linkset.title }}</h3>
<a routerLink="{{ link.path }}">{{ link.title }}</a>
</daff-list-item>
</daff-list>
<daff-button-set>
<div class="demo-footer__social">
<a daff-icon-button color="black" href="#" target="_blank" rel="noopener noreferrer"><fa-icon [icon]="faTwitter"></fa-icon></a>
<a daff-icon-button color="black" href="#" target="_blank" rel="noopener noreferrer"><fa-icon [icon]="faFacebookF"></fa-icon></a>
<a daff-icon-button color="black" href="#" target="_blank" rel="noopener noreferrer"><fa-icon [icon]="faInstagram"></fa-icon></a>
</daff-button-set>
</div>
</div>
</daff-container>
6 changes: 6 additions & 0 deletions apps/demo/src/app/core/footer/footer.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,10 @@
@include breakpoint(big-tablet) {
grid-template-columns: repeat(4, 1fr);
}

&__social {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
}
2 changes: 0 additions & 2 deletions apps/demo/src/app/core/footer/footer.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';

import {
DaffListModule,
DaffButtonSetModule,
DaffButtonModule,
DaffContainerModule,
} from '@daffodil/design';
Expand All @@ -20,7 +19,6 @@ import { FooterComponent } from './footer.component';

DaffListModule,
DaffButtonModule,
DaffButtonSetModule,
DaffContainerModule,
FontAwesomeModule,
],
Expand Down
4 changes: 3 additions & 1 deletion libs/design/src/molecules/button-set/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Button Set Component
# Button Set (deprecated)

> The button set will be deprecated in v1.0.0 in favor of allowing endusers to determine how a set of buttons should be displayed.
The button set component is used when there are two or more buttons grouped together in a row.

Expand Down
3 changes: 3 additions & 0 deletions libs/design/src/molecules/button-set/button-set.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import {
ChangeDetectionStrategy,
} from '@angular/core';

/**
* @deprecated in v1.0.0
*/
@Component({
selector: 'daff-button-set',
template: '<ng-content></ng-content>',
Expand Down

0 comments on commit 1ef3e46

Please sign in to comment.