Tried to remove the search cancel icon but isn't working? #12268
Answered
by
wongjn
IAmMythoRED
asked this question in
Help
-
Hey I tried using the class name "search-cancel:appearence-none" to try remove the x while the user is typing but doesnt seems removing it: Also my another problem is the text input width is not the width of the actual input field: Hers my code: import { Icon } from "@iconify/react"
import Image from "next/image"
const SearchForm = ({placeHolder}) => {
return (
<form className="flex w-[800px]">
<input type="search"
size={80}
className='search-cancel:appearance-none bg-gradient-to-r from-[#ffffffe5] to-[#e5e1cce7] text-[#0c0b0b] text-xl font-semibold opacity-[71%] shadow-[0px_3.5px_#00000060] px-[74px] py-1 ml-[63px] w-full h-[60px] rounded-[7px] mb-8 outline-none placeholder-[#131312] placeholder:font-bold placeholder:text-[20px]'
placeholder={placeHolder}/>
<Icon className="absolute ml-[80px] mt-[12px]" icon='ic:outline-search' width={40} height={40} />
<Image alt="google-search" src='/images/search-bot.png' width={255} height={261} className="absolute left-[756px] top-32 " />
</form>
)
}
export default SearchForm |
Beta Was this translation helpful? Give feedback.
Answered by
wongjn
Oct 23, 2023
Replies: 1 comment 5 replies
-
You could consider using an arbitrary variant to hide the X icon, like |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could consider reducing the right padding: https://play.tailwindcss.com/hAyHpzkWYQ