Skip to content

Commit

Permalink
changelog and todo comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cchaos committed Jun 5, 2018
1 parent 2d3ebd3 commit f70ae17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Added `resize` prop to `EuiTextArea` that defaults to ‘vertical’ (only height) ([#894](https://github.com/elastic/eui/pull/894))
- Added multiple style-only adjustments to `EuiFormControlLayout` buttons/icons ([#894](https://github.com/elastic/eui/pull/894))
- Shifted `readOnly` inputs to not have left padding unless it has an icon ([#894](https://github.com/elastic/eui/pull/894))
- Added more customization options to `EuiAvatar` ([#903](https://github.com/elastic/eui/pull/903))

**Bug fixes**

Expand Down
3 changes: 2 additions & 1 deletion src/components/avatar/avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const EuiAvatar = ({
);
};

// TODO: Migrate to a service
function checkValidColor(props, propName, componentName) {
const validHex = /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(props.color);
if (props.color && !validHex) {
Expand Down Expand Up @@ -146,7 +147,7 @@ EuiAvatar.propTypes = {
initials: checkValidInitials,

/**
* The type of avatar is this displaying
* The type of avatar to this is displaying
*/
type: PropTypes.oneOf(TYPES),
};
Expand Down

0 comments on commit f70ae17

Please sign in to comment.