Skip to content

Commit

Permalink
Replace Avatar in favor of Icon in OuiFacetButtons example (opensearc…
Browse files Browse the repository at this point in the history
…h-project#987)

* Replace Avatar in favor of Icon in OuiFacetButtons example (opensearch-project#909)

Signed-off-by: Danila Gulderov <danila@gulderov.me>

* changelog update (opensearch-project#909)

Signed-off-by: Danila Gulderov <danila@gulderov.me>

---------

Signed-off-by: Danila Gulderov <danila@gulderov.me>
  • Loading branch information
gulderov authored Sep 1, 2023
1 parent c9d0d62 commit 36cb2a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

### 📝 Documentation

- Replace Avatar in favor of Icon in OuiFacetButtons example ([#987](https://github.com/opensearch-project/oui/pull/987))
- Add dark prop toggles ([#910](https://github.com/opensearch-project/oui/pull/910))
- Remove language from the form validation documentation that doesn't align with the updated guidelines ([#986](https://github.com/opensearch-project/oui/pull/986))

Expand Down
8 changes: 3 additions & 5 deletions src-docs/src/views/facet/facet.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import React from 'react';

import { OuiFacetButton, OuiIcon, OuiAvatar } from '../../../../src/components';
import { OuiFacetButton, OuiIcon } from '../../../../src/components';

export default () => (
<div>
Expand All @@ -29,10 +29,8 @@ export default () => (
Disabled
</OuiFacetButton>
<br />
<OuiFacetButton
quantity={6}
icon={<OuiAvatar size="s" name="Avatar Jones" />}>
Avatar as icon
<OuiFacetButton quantity={6} icon={<OuiIcon type="tokenObject" />}>
Facet with Icon example
</OuiFacetButton>
<br />
<OuiFacetButton quantity={6} isLoading>
Expand Down

0 comments on commit 36cb2a8

Please sign in to comment.