-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1119 from scheduleonce/avengers/tabs-module-qa
update the document with the stackblitz url
- Loading branch information
Showing
13 changed files
with
94 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -727,7 +727,4 @@ | |
border-color: #666; | ||
opacity: 1; | ||
} | ||
.oui-mdc-tab-body-wrapper { | ||
min-height: 100px; | ||
} | ||
</style> |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,48 @@ | ||
Please see the official documentation at https://material.angular.io/components/component/tabs | ||
The `oui-tab` efficiently arrange content into distinct views, allowing visibility for only one view at a time. | ||
The tab header displays each tab's label, with the active tab highlighted by an animated ink bar. | ||
|
||
### Usage | ||
|
||
```js | ||
import { OuiTabsModule } from '@oncehub/ui'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
OuiTabsModule | ||
] | ||
}) | ||
``` | ||
|
||
## Usage Example | ||
|
||
```html | ||
<oui-tab-group (selectedTabChange)="onTabChanged($event);"> | ||
<oui-tab label="First1" text="<h2>Content in tab 1</h2>"></oui-tab> | ||
<oui-tab label="Second" text="<h2>Content in tab 2</h2>"></oui-tab> | ||
<oui-tab label="Third" text="<h2>Content in tab 3</h2>"></oui-tab> | ||
</oui-tab-group> | ||
``` | ||
|
||
## API OuiTab | ||
|
||
| Input | Type | Default | Description | | ||
| ----- | ------ | ------- | ----------------------------------------------------------- | | ||
| label | string | empty | Label Text | | ||
| text | string | empty | The text/HTML that we want to display in the respective tab | | ||
|
||
| Method | Description | | ||
| ----------------- | ---------------------------------------------- | | ||
| selectedTabChange | The selectedTabChange, emits the change event. | | ||
|
||
## Stackblitz demo link | ||
|
||
[https://stackblitz.com/edit/oui-tab](https://stackblitz.com/edit/oui-tab) | ||
|
||
You can click here and can change code to try and test different scenarios. | ||
|
||
### Accessibility | ||
|
||
Elements with the `ouiTab` will add an `aria-describedby` label that provides a reference | ||
to a visually hidden element containing the title. This provides screenreaders the | ||
information needed to read out the contents when the end-user focuses on the element | ||
triggering the tab. |
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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
<div | ||
class="oui-mdc-tab-body-content" | ||
#content | ||
cdkScrollable | ||
[innerHTML]="_content2" | ||
> | ||
<div class="oui-mdc-tab-body-content" #content [innerHTML]="_innerContent"> | ||
<!-- {{_content}} --> | ||
<!-- <ng-template [OuiTabBodyHost]></ng-template> --> | ||
</div> |
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