summaryrefslogtreecommitdiffstats
path: root/src/components/molecules/forms/select-with-tooltip.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-05-25 15:49:31 +0200
committerArmand Philippot <git@armandphilippot.com>2022-05-25 15:49:31 +0200
commit36d129414b696bd2a633d379cac1dff867f64413 (patch)
tree30097582a73e91025c653969a109c8c2e8a9f471 /src/components/molecules/forms/select-with-tooltip.tsx
parent6e6e068c42a8da7e92ee1bc0a14d2c47012b0a65 (diff)
fix(settings): reduce font-size on small devices
With French translation, words are a little longer so I reduce the font size on small devices to avoid line breaking.
Diffstat (limited to 'src/components/molecules/forms/select-with-tooltip.tsx')
-rw-r--r--src/components/molecules/forms/select-with-tooltip.tsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components/molecules/forms/select-with-tooltip.tsx b/src/components/molecules/forms/select-with-tooltip.tsx
index 29e2563..46075c2 100644
--- a/src/components/molecules/forms/select-with-tooltip.tsx
+++ b/src/components/molecules/forms/select-with-tooltip.tsx
@@ -11,6 +11,10 @@ export type SelectWithTooltipProps = Omit<
> &
Pick<TooltipProps, 'title' | 'content'> & {
/**
+ * Set additional classnames to the select wrapper.
+ */
+ className?: string;
+ /**
* Set additional classnames to the tooltip wrapper.
*/
tooltipClassName?: TooltipProps['className'];
@@ -22,9 +26,10 @@ export type SelectWithTooltipProps = Omit<
* Render a select with a button to display a tooltip about options.
*/
const SelectWithTooltip: FC<SelectWithTooltipProps> = ({
- title,
+ className = '',
content,
id,
+ title,
tooltipClassName = '',
...props
}) => {
@@ -47,7 +52,7 @@ const SelectWithTooltip: FC<SelectWithTooltipProps> = ({
);
return (
- <div className={styles.wrapper}>
+ <div className={`${styles.wrapper} ${className}`}>
<LabelledSelect
labelPosition="left"
id={id}