Add rounded-none to combined buttons by default (#4330)
* Add rounded-none to combined buttons by default * Remove combined Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
1 parent
83f0ba7ba4
commit
3e92571078
4 files changed
+9
-16
No files matched your search
@@ -63,7 +63,6 @@ const Actions = ({
|
||||
rel="noreferrer"
|
||||
action="preview"
|
||||
StartIcon={Icon.FiExternalLink}
|
||||
combined
|
||||
/>
|
||||
</Tooltip>
|
||||
<FormAction
|
||||
@@ -74,7 +73,6 @@ const Actions = ({
|
||||
type="button"
|
||||
StartIcon={Icon.FiLink}
|
||||
tooltip={t("copy_link")}
|
||||
combined
|
||||
/>
|
||||
<Tooltip content="Download Responses">
|
||||
<FormAction
|
||||
@@ -85,7 +83,6 @@ const Actions = ({
|
||||
size="icon"
|
||||
type="button"
|
||||
StartIcon={Icon.FiDownload}
|
||||
combined
|
||||
/>
|
||||
</Tooltip>
|
||||
<FormAction
|
||||
@@ -95,7 +92,6 @@ const Actions = ({
|
||||
size="icon"
|
||||
StartIcon={Icon.FiCode}
|
||||
tooltip={t("embed")}
|
||||
combined
|
||||
/>
|
||||
<FormAction
|
||||
routingForm={form}
|
||||
@@ -106,7 +102,6 @@ const Actions = ({
|
||||
color="secondary"
|
||||
type="button"
|
||||
tooltip={t("delete")}
|
||||
combined
|
||||
/>
|
||||
</ButtonGroup>
|
||||
<div className="flex md:hidden">
|
||||
@@ -118,8 +113,7 @@ const Actions = ({
|
||||
type="button"
|
||||
rel="noreferrer"
|
||||
action="preview"
|
||||
StartIcon={Icon.FiExternalLink}
|
||||
combined>
|
||||
StartIcon={Icon.FiExternalLink}>
|
||||
Preview
|
||||
</FormAction>
|
||||
<FormAction
|
||||
|
||||
@@ -21,7 +21,7 @@ export default function ButtonGroup({ children, combined = false, containerProps
|
||||
"flex",
|
||||
!combined
|
||||
? "space-x-2"
|
||||
: "[&_button]:border-l-0 [&>*:first-child]:rounded-l-md [&>*:first-child]:border-l [&_a]:border-l-0 [&>*:last-child]:rounded-r-md",
|
||||
: "[&_button]:rounded-none [&_button]:border-l-0 [&>*:first-child]:rounded-l-md [&>*:first-child]:border-l [&_a]:rounded-none [&_a]:border-l-0 [&>*:last-child]:rounded-r-md",
|
||||
containerProps?.className
|
||||
)}>
|
||||
{children}
|
||||
|
||||
Reference in new issue
Block a user