Skip to content

Commit

Permalink
fix: attempt to fix tooltip maxWidth
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaakher committed Feb 4, 2024
1 parent 433545c commit 92146f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions packages/components/elements/tooltip/Tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ const Tooltip: React.FunctionComponent<TooltipTypes> = ({
{...contentProps}
style={{
...contentProps?.style,
maxWidth: "var(--radix-tooltip-content-available-width)",
maxHeight: "var(--radix-tooltip-content-available-height)"
maxWidth: "var(--radix-tooltip-content-available-width) !important",
maxHeight:
"var(--radix-tooltip-content-available-height) !important"
}}
>
{content}
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sikka/hawa",
"version": "0.27.16",
"version": "0.27.17",
"description": "Modern UI Kit made with Tailwind",
"author": {
"name": "Sikka Software",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export const Default: Story = {
]}
usernameOptions={{
label: {
hintSide: "right",
hint: "Testing a hint",
hintSide: "top",
hint: "إسم البكلة هو الجزء الأخير من رابط البكلة الخاص بك. مثال: https://puk.la/example",
required: true
}
}}
Expand Down

0 comments on commit 92146f2

Please sign in to comment.