mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
♻️ Shorten generic CSS class names
This commit is contained in:
parent
765793b94b
commit
cb474dcce7
9 changed files with 22 additions and 32 deletions
|
@ -5,14 +5,10 @@ const Title = ( { children, noCaps = false, big = false, className = '' } ) => {
|
|||
return null;
|
||||
}
|
||||
|
||||
const elementClasses = classNames(
|
||||
'ppcp-r-settings-block__title',
|
||||
className,
|
||||
{
|
||||
'ppcp--no-caps': noCaps,
|
||||
'ppcp--big': big,
|
||||
}
|
||||
);
|
||||
const elementClasses = classNames( 'ppcp--title', className, {
|
||||
'ppcp--no-caps': noCaps,
|
||||
'ppcp--big': big,
|
||||
} );
|
||||
|
||||
return <span className={ elementClasses }>{ children }</span>;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue