#When using SolidStart, my icons look mangled on first load

12 messages · Page 1 of 1 (latest)

kindred imp
#

On first render, my icons look mangled.

import { HiOutlineHome, HiOutlineBriefcase, HiOutlineFolder, HiOutlineNewspaper, HiOutlineChat, HiOutlineFire } from "solid-icons/hi";
const options = [
    {
        icon: <HiOutlineHome size={24} />,
    },
    {
        icon: <HiOutlineBriefcase size={24}/>,
    },
    {
        icon: <HiOutlineFolder size={24}/>,
    },
    {
        icon: <HiOutlineFire size={24}/>,
    },
    {
        icon: <HiOutlineNewspaper size={24}/>,
    },
]

function NavOption(props) {
    return (   
        <A href="#">
            {props.icon}
        </A>                   
    )
}

export default function NavBar() {
    return (      
        <nav class="mt-8 flex-1 space-y-1 px-2" aria-label="Sidebar">
              <For each={options}>
                      {(option) => 
                            <NavOption icon={option.icon} />
                       }
               </For>
         </nav>
         ...
     )
}
#

When using SolidStart, my icons look mangled on first load

kindred imp
#

It has something to do with the <A> tags

worthy quest
kindred imp
#

Oh good idea. I'll try and post my results

mint rapids
kindred imp
kindred imp
#

Well, we have confirmed this is not a Solid, SolidStart or even SSR issue. solid-icons/hi is simply out of date. Thank you all!

#

Now...how do I close this ticket...hmm...

mint rapids
kindred imp
#

That's a very good point actually