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:
@@ -273,7 +273,7 @@ const UserList: React.FC = () => {
|
||||
okButtonType="danger"
|
||||
onCancel={() => setDeleteModal({ isOpen: false })}
|
||||
title={intl.formatMessage(messages.deleteuser)}
|
||||
iconSvg={<TrashIcon className="w-6 h-6" />}
|
||||
iconSvg={<TrashIcon />}
|
||||
>
|
||||
{intl.formatMessage(messages.deleteconfirm)}
|
||||
</Modal>
|
||||
@@ -335,7 +335,7 @@ const UserList: React.FC = () => {
|
||||
return (
|
||||
<Modal
|
||||
title={intl.formatMessage(messages.createuser)}
|
||||
iconSvg={<UserAddIcon className="w-6 h-6" />}
|
||||
iconSvg={<UserAddIcon />}
|
||||
onOk={() => handleSubmit()}
|
||||
okText={
|
||||
isSubmitting
|
||||
@@ -451,8 +451,8 @@ const UserList: React.FC = () => {
|
||||
buttonType="primary"
|
||||
onClick={() => setCreateModal({ isOpen: true })}
|
||||
>
|
||||
<UserAddIcon className="w-5 h-5 mr-1" />
|
||||
{intl.formatMessage(messages.createlocaluser)}
|
||||
<UserAddIcon />
|
||||
<span>{intl.formatMessage(messages.createlocaluser)}</span>
|
||||
</Button>
|
||||
<Button
|
||||
className="flex-grow outline lg:mr-2"
|
||||
@@ -460,8 +460,8 @@ const UserList: React.FC = () => {
|
||||
disabled={isImporting}
|
||||
onClick={() => importFromPlex()}
|
||||
>
|
||||
<InboxInIcon className="w-5 h-5 mr-1" />
|
||||
{intl.formatMessage(messages.importfromplex)}
|
||||
<InboxInIcon />
|
||||
<span>{intl.formatMessage(messages.importfromplex)}</span>
|
||||
</Button>
|
||||
</div>
|
||||
<div className="flex flex-grow mb-2 lg:mb-0 lg:flex-grow-0">
|
||||
@@ -523,8 +523,8 @@ const UserList: React.FC = () => {
|
||||
onClick={() => setShowBulkEditModal(true)}
|
||||
disabled={selectedUsers.length === 0}
|
||||
>
|
||||
<PencilIcon className="w-5 h-5 mr-1" />
|
||||
{intl.formatMessage(messages.bulkedit)}
|
||||
<PencilIcon />
|
||||
<span>{intl.formatMessage(messages.bulkedit)}</span>
|
||||
</Button>
|
||||
)}
|
||||
</Table.TH>
|
||||
|
||||
Reference in New Issue
Block a user