-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(components/pages): add
sky-link-list
component (#2784)
[AB#3033904](https://dev.azure.com/blackbaud/f565481a-7bc9-4083-95d5-4f953da6d499/_workitems/edit/3033904) [AB#3033919](https://dev.azure.com/blackbaud/f565481a-7bc9-4083-95d5-4f953da6d499/_workitems/edit/3033919)
- Loading branch information
1 parent
9f5e268
commit 537ef63
Showing
31 changed files
with
385 additions
and
61 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
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
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
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
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
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
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
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
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
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
14 changes: 14 additions & 0 deletions
14
apps/e2e/pages-storybook/src/app/shared/links/links.component.html
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,14 @@ | ||
<sky-link-list headingText="Links"> | ||
<sky-link-list-item> | ||
<a href="#">Link 1</a> | ||
</sky-link-list-item> | ||
<sky-link-list-item> | ||
<a href="#">Link 2</a> | ||
</sky-link-list-item> | ||
<sky-link-list-item> | ||
<a href="#">Link 3</a> | ||
</sky-link-list-item> | ||
<sky-link-list-item> | ||
<button type="button" class="sky-btn-link-inline">Button</button> | ||
</sky-link-list-item> | ||
</sky-link-list> |
10 changes: 10 additions & 0 deletions
10
apps/e2e/pages-storybook/src/app/shared/links/links.component.ts
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,10 @@ | ||
import { Component } from '@angular/core'; | ||
import { SkyLinkListModule } from '@skyux/pages'; | ||
|
||
@Component({ | ||
selector: 'app-links', | ||
standalone: true, | ||
imports: [SkyLinkListModule], | ||
templateUrl: './links.component.html', | ||
}) | ||
export class LinksComponent {} |
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
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
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
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
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
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
26 changes: 26 additions & 0 deletions
26
libs/components/pages/src/lib/modules/link-list/fixtures/link-list-fixture.component.ts
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,26 @@ | ||
import { Component, input } from '@angular/core'; | ||
|
||
import { SkyPageLinksInput } from '../../action-hub/types/page-links-input'; | ||
import { SkyLinkListModule } from '../link-list.module'; | ||
|
||
@Component({ | ||
standalone: true, | ||
selector: 'sky-link-list-fixture', | ||
template: ` | ||
<sky-link-list headingText="Heading..." [links]="links()"> | ||
@if (showLinks()) { | ||
<sky-link-list-item> | ||
<a href="#">Link 1</a> | ||
</sky-link-list-item> | ||
<sky-link-list-item> | ||
<a href="#">Link 2</a> | ||
</sky-link-list-item> | ||
} | ||
</sky-link-list> | ||
`, | ||
imports: [SkyLinkListModule], | ||
}) | ||
export class LinkListFixtureComponent { | ||
public readonly links = input<SkyPageLinksInput | undefined>(); | ||
public readonly showLinks = input<boolean>(false); | ||
} |
20 changes: 20 additions & 0 deletions
20
libs/components/pages/src/lib/modules/link-list/link-list-item.component.ts
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,20 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
/** | ||
* A wrapper for each link in a link list. | ||
*/ | ||
@Component({ | ||
standalone: true, | ||
selector: 'sky-link-list-item', | ||
template: `<ng-content />`, | ||
styles: ` | ||
:host { | ||
display: block; | ||
margin: 0 0 var(--sky-margin-stacked-sm) 0; | ||
} | ||
`, | ||
host: { | ||
'[attr.role]': '"listitem"', | ||
}, | ||
}) | ||
export class SkyLinkListItemComponent {} |
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
Oops, something went wrong.