Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
removed eslint disable rule
  • Loading branch information
James Newell committed Jan 7, 2020
commit 10853c37ecfd2901682e91a80963d4282892449c
13 changes: 6 additions & 7 deletions packages/components/src/text/mixins.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,20 @@ const label = `
*/

/**
* @param {TextVariant} variant
* @param {TextVariant} variantName
*/
// eslint-disable-next-line no-shadow
const variant = ( variant ) => {
switch ( variant ) {
const variant = ( variantName ) => {
switch ( variantName ) {
case 'title.large':
return css`
${ title }
${ titleLarge }
`;
case 'title.medium':
return css`
${ title }
${ titleMedium }
`;
${ title }
${ titleMedium }
`;
case 'title.small':
return css`
${ title }
Expand Down