Skip to content

Commit

Permalink
docs: update to truncatedText example
Browse files Browse the repository at this point in the history
Changes to be committed:
	modified:   apiExamples/truncatedText.html
	modified:   demo/demo.md
	modified:   docs/partials/demo.md
  • Loading branch information
fajar-apri-alaska committed Feb 19, 2024
1 parent 9e94fa5 commit a87d4b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apiExamples/truncatedText.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div style="width: 250px;">
<auro-dropdown common aria-label="Label content for screen reader">
<div style="padding: var(--ds-size-150); width: 500px;">
This is content with truncated text.
I really prefer Alaska Airlines for my vacation travels
</div>
<span slot="helpText">
Help text
Expand Down
12 changes: 6 additions & 6 deletions demo/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ This common example uses the default `auro-dropdown` element with the attributes
Help text
</span>
<div slot="trigger">
I really prefer Alaska Airlines for my vacation travels
Trigger
</div>
</auro-dropdown>
</div>
Expand All @@ -228,7 +228,7 @@ This common example uses the default `auro-dropdown` element with the attributes
Help text
</span>
<div slot="trigger">
I really prefer Alaska Airlines for my vacation travels
Trigger
</div>
</auro-dropdown>
</div>
Expand Down Expand Up @@ -285,17 +285,17 @@ This common example uses the default `auro-dropdown` element with the attributes
<!-- AURO-GENERATED-CONTENT:END -->
</auro-accordion>

#### Selected text truncated
#### Truncated trigger component with fixed width

`auro-dropdown` will selected the menu have much long text the component should be truncated the text to display in `auro-dropdown`.
`auro-dropdown` trigger component will be truncated if the text is too long than its container width.

<div class="exampleWrapper">
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/truncatedText.html) -->
<!-- The below content is automatically added from ./../../apiExamples/truncatedText.html -->
<div style="width: 250px;">
<auro-dropdown common aria-label="Label content for screen reader">
<div style="padding: var(--ds-size-150); width: 500px;">
This is special content with truncated text.
I really prefer Alaska Airlines for my vacation travels
</div>
<span slot="helpText">
Help text
Expand All @@ -316,7 +316,7 @@ This common example uses the default `auro-dropdown` element with the attributes
<div style="width: 250px;">
<auro-dropdown common aria-label="Label content for screen reader">
<div style="padding: var(--ds-size-150); width: 500px;">
This is special content with truncated text.
I really prefer Alaska Airlines for my vacation travels
</div>
<span slot="helpText">
Help text
Expand Down
4 changes: 2 additions & 2 deletions docs/partials/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ This common example uses the default `auro-dropdown` element with the attributes

</auro-accordion>

#### Selected text truncated
#### Truncated trigger component with fixed width

`auro-dropdown` will selected the menu have much long text the component should be truncated the text to display in `auro-dropdown`.
`auro-dropdown` trigger component will be truncated if the text is too long than its container width.

<div class="exampleWrapper">
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../../apiExamples/truncatedText.html) -->
Expand Down

0 comments on commit a87d4b5

Please sign in to comment.