diff --git a/CHANGELOG.md b/CHANGELOG.md index 773e353afa1..df6f733cfc9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## [`master`](https://github.com/elastic/eui/tree/master) -No public interface changes since `0.0.44`. +- Added `EuiBetaBadge` for non-GA labelling including options to add it to `EuiCard` and `EuiKeyPadMenuItem` ([#705](https://github.com/elastic/eui/pull/705)) + ## [`0.0.44`](https://github.com/elastic/eui/tree/v0.0.44) diff --git a/src-docs/src/views/badge/badge_example.js b/src-docs/src/views/badge/badge_example.js index a63326ef564..c8358ed3ab0 100644 --- a/src-docs/src/views/badge/badge_example.js +++ b/src-docs/src/views/badge/badge_example.js @@ -9,6 +9,8 @@ import { import { EuiBadge, EuiCode, + EuiBetaBadge, + EuiLink, } from '../../../../src/components'; import Badge from './badge'; @@ -23,6 +25,10 @@ import BadgeButton from './badge_button'; const badgeButtonSource = require('!!raw-loader!./badge_button'); const badgeButtonHtml = renderToHtml(BadgeButton); +import BetaBadge from './beta_badge'; +const betaBadgeSource = require('!!raw-loader!./beta_badge'); +const betaBadgeHtml = renderToHtml(BetaBadge); + export const BadgeExample = { title: 'Badge', sections: [{ @@ -76,5 +82,36 @@ export const BadgeExample = {
), demo:
+ The
+ If you pass in an
+ They can also be used in conjunction
+ with
+ If the card links to or references a module that is not GA (beta, lab, etc),
+ you can add a
+ If the item links to a module that is not GA (beta, lab, etc),
+ you can add a
+ Supplying just a label will only show the first letter in the badge and supply the full label
+ to the tooltip. You can also pass an