mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
refactor(css): add styles targeting SVG button/modal icons (#1464)
* refactor(css): add global classes for common icon types * refactor(css): target child SVGs instead of creating new icon classes * fix: fix ButtonWithDropdown style class spacing
This commit is contained in:
@@ -81,16 +81,14 @@ function Button<P extends ElementTypes = 'button'>(
|
||||
|
||||
switch (buttonSize) {
|
||||
case 'sm':
|
||||
buttonStyle.push('px-2.5 py-1.5 text-xs');
|
||||
break;
|
||||
case 'md':
|
||||
buttonStyle.push('px-4 py-2 text-sm');
|
||||
buttonStyle.push('px-2.5 py-1.5 text-xs button-sm');
|
||||
break;
|
||||
case 'lg':
|
||||
buttonStyle.push('px-6 py-3 text-base');
|
||||
buttonStyle.push('px-6 py-3 text-base button-lg');
|
||||
break;
|
||||
case 'md':
|
||||
default:
|
||||
buttonStyle.push('px-4 py-2 text-sm');
|
||||
buttonStyle.push('px-4 py-2 text-sm button-md');
|
||||
}
|
||||
|
||||
buttonStyle.push(className ?? '');
|
||||
|
Reference in New Issue
Block a user