You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-23 21:42:27 +03:00
Fix pill buttons in dialogs (#31246)
* Fix pill buttons in dialogs Add the magic class that makes the buttons not be broken by the dialog button styles. * Update snapshot
This commit is contained in:
@@ -53,7 +53,13 @@ export function Pill({ className, children, label, onClick, ...props }: PropsWit
|
|||||||
{label}
|
{label}
|
||||||
</span>
|
</span>
|
||||||
{onClick && (
|
{onClick && (
|
||||||
<IconButton aria-describedby={id} size="16px" onClick={onClick} aria-label={_t("action|delete")}>
|
<IconButton
|
||||||
|
aria-describedby={id}
|
||||||
|
size="16px"
|
||||||
|
onClick={onClick}
|
||||||
|
aria-label={_t("action|delete")}
|
||||||
|
className="mx_Dialog_nonDialogButton"
|
||||||
|
>
|
||||||
<CloseIcon color="var(--cpd-color-icon-tertiary)" />
|
<CloseIcon color="var(--cpd-color-icon-tertiary)" />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ exports[`Pill renders the pill 1`] = `
|
|||||||
<button
|
<button
|
||||||
aria-describedby="_r_0_"
|
aria-describedby="_r_0_"
|
||||||
aria-label="Delete"
|
aria-label="Delete"
|
||||||
class="_icon-button_1pz9o_8"
|
class="_icon-button_1pz9o_8 mx_Dialog_nonDialogButton"
|
||||||
data-kind="primary"
|
data-kind="primary"
|
||||||
role="button"
|
role="button"
|
||||||
style="--cpd-icon-button-size: 16px;"
|
style="--cpd-icon-button-size: 16px;"
|
||||||
|
|||||||
Reference in New Issue
Block a user