-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reset all:unset
issues
#296
Comments
I've also noticed changes in DropdownMenuItem, specifically here
This was changed from No issues on my end, I just added |
I've found that the following, fixes my initial issue... <SelectTrigger
placeholder="Select an industry"
- className="w-full"
+ style={{ width: "100%" }}
/> |
Also: <Card className="min-h-[200px]" asChild>
<Link href={"/"}>
<Flex
justify={"center"}
direction={"column"}
align={"center"}
height={"100%"}
>
<ArchiveIcon className="h-5 w-5" />
<Text weight={"medium"}>One</Text>
</Flex>
</Link>
</Card> Again, using style={{}} instead of className works, but I am using TailwindCSS. |
Thanks, this is helpful—we'll double check these, all of that is going to be under a major 3.0.0 release What does your The dropdown menu change is the only one that's intended: In the updated version it's optimised for icons next to the text (e.g. icon first, then text with a small gap between them), as the previous one just didn't consider nesting your own icons. You can still do that |
FormItem is basically just a div with Good idea on the Happy to keep this issue open and document any other unexpected changes I notice throughout my app. |
Looking into the Select Trigger and Card issues you mentioned – the CSS classes are still forwarded to the right elements, which makes me think that in your case the Tailwind utilities just don’t overwrite the styles for whatever reasons. All the related styles are of Can you check whether your Tailwind utilities are applied after Radix Themes CSS? e.g. via #109 (comment).
Sure, feel free to add more here. |
CSS Setup 1: @tailwind base;
@tailwind components;
@tailwind utilities;
@import "@radix-ui/themes/styles.css"; Radix 2.0.3 + tailwindcss@insiders (MY CURRENT SETUP) Radix 3.0.0-rc + tailwindcss@insiders Radix 3.0.0-rc + [email protected] CSS Setup 2: @tailwind base;
@import "@radix-ui/themes/styles.css";
@tailwind components;
@tailwind utilities; Radix 3.0.0-rc + tailwindcss@insiders Changing CSS import order seems to have done the trick, I was not having specificity issues such as when using Will keep an eye on the new setup and report any findings |
From when I tested it, Setup 1 and Setup 2 were equivalent in the latest stable TW version, but if it works, it works. Not sure why you haven't seen other issues—at the very least,
Could be because of this change tailwindlabs/tailwindcss#12735 being already in the insiders version. I'll close this for now but feel free to report any other issues here or in separate reports. |
@vladmoroz I don't think <div className="w-fit">
<Card>
<Inset side={"all"} clip={"border-box"}>
<Image
alt={`Photo`}
width={300}
height={200}
key={"media.id"}
// className="aspect-video h-auto max-w-[100%] rounded-2 bg-cover bg-no-repeat align-middle"
src={
"https://images.unsplash.com/photo-1682686581221-c126206d12f0?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
}
/>
</Inset>
</Card>
</div>
<div className="w-fit">
<RadioCardGroupRoot>
<RadioCardGroupItem key={"1"} value={"1"}>
<Inset side={"all"} clip={"border-box"}>
<Image
alt={`Photo`}
width={300}
height={200}
key={"media.id"}
// className="aspect-video h-auto max-w-[100%] rounded-2 bg-cover bg-no-repeat align-middle"
src={
"https://images.unsplash.com/photo-1682686581221-c126206d12f0?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDF8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
}
/>
</Inset>
</RadioCardGroupItem>
</RadioCardGroupRoot>
</div> |
Good catch, will take a note to make Inset work there |
Also, does it make sense to use Context: I am adding image name under the image. I see |
Something else I came across. It looks the new dialog scroll overlay setup is causing this? I can remove these styles but then Context: I am trying to use a dialog positioned at the top of the screen. <DialogRoot>
<DialogTrigger>
<IconButton variant="soft">
<TextAlignJustifyIcon />
</IconButton>
</DialogTrigger>
<DialogContent className="absolute top-4 m-4" style={{ maxWidth: "95%" }}>
{...}
</DialogContent>
</DialogRoot> |
@kevinmitch14 what are you trying to achieve with these style overrides?
|
Context: I am trying to use a dialog positioned at the top of the screen. |
You probably want something like this:
That We'll take a look into providing better options for positioning the dialog though so that you don't have to do a custom style that is potentially fragile with updates |
In the old version there was no overflow with Your solution works well though |
@vladmoroz, unrelated to v3 but should Is this by design or an oversight? Do the classic / surface variants have any differences when using |
No this is intentional to maintain a consistent focus outline. |
Feel free to change Issue name. It looks like the changes made in reset.css via #276 has caused some unexpected changes. I believe this is closer to native HTML behaviour anyway, but maybe should be flagged in changelog?
themes/packages/radix-ui-themes/src/components/reset.css
Line 37 in 3b27336
Before:
After:
Code Snippet: FormLabel is using Radix Label under the hood.
The text was updated successfully, but these errors were encountered: