Next.js Discord

Discord Forum

button not working

Unanswered
Giant Chinchilla posted this in #help-forum
Open in Discord
Giant ChinchillaOP
i've imported a stypled component from the mui tailwind library, but its not rendering the way i want it to.. can someone help?

10 Replies

Giant ChinchillaOP
<Menu open={openMenu} handler={setOpenMenu} allowHover>
      <MenuHandler>
        <Button
          variant="text"
          className="flex items-center gap-3 text-base font-normal capitalize tracking-normal"
        >
          Technology{" "}
          <ChevronDownIcon
            strokeWidth={2.5}
            className={`h-3.5 w-3.5 transition-transform ${
              openMenu ? "rotate-180" : ""
            }`}
          />
        </Button>
      </MenuHandler>
      <MenuList className="hidden w-[36rem] grid-cols-7 gap-3 overflow-visible lg:grid">
        <Card
          color="gray"
          shadow={false}
          variant="gradient"
          className="col-span-3 grid h-full w-full place-items-center rounded-md"
        >
          <RocketLaunchIcon strokeWidth={1} className="h-28 w-28" />
        </Card>
        <ul className="col-span-4 flex w-full flex-col gap-1">
          {menuItems.map(({ title, description }) => (
            <a href="#" key={title}>
              <MenuItem>
                <Typography variant="h6" color="blue-gray" className="mb-1">
                  {title}
                </Typography>
                <Typography
                  variant="small"
                  color="gray"
                  className="font-normal"
                >
                  {description}
                </Typography>
              </MenuItem>
            </a>
          ))}
        </ul>
      </MenuList>
    </Menu>
the menu's don't look the same
for some reason my technolgy button has no downward pointing angle bracket and no animation of the angle bracket going downward and upwards on hover
does anyone know how i can fix this?
any ideas why the code won't work?
can you try inspect element on the button
Giant ChinchillaOP
okay so i deleted all my css in my global.css, and its now showing the downward angle bracket that I wanted (so there's something in the css file preventing the button from showing properly
However now its not giving me the animation when I hover over the button, any ideas?