Skip to content

Commit

Permalink
Merge pull request #191 from Sitebase/feature/uppercase
Browse files Browse the repository at this point in the history
[initials] Replace uppercase CSS by JS uppercase
  • Loading branch information
JorgenEvens authored Feb 17, 2020
2 parents 31cecdd + c6fdea6 commit 4605d86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ function createAvatarComponent({ sources = [] }) {
height: size.str,
lineHeight: 'initial',
textAlign: 'center',
textTransform: 'uppercase',
color: this.props.fgColor,
background: this.state.color,
borderRadius: (round === true ? '100%' : round)
Expand Down
3 changes: 2 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ function defaultInitials(name, { maxInitials }) {
.map(part => part.substring(0, 1).toUpperCase())
.filter(v => !!v)
.slice(0, maxInitials)
.join('');
.join('')
.toUpperCase();
}

/**
Expand Down

0 comments on commit 4605d86

Please sign in to comment.