Closed tmmehta5 closed 2 years ago
iTwinUI team: if a user places an SVG in our footer currently the icon is not vertically centered. Should we update the CSS to handle this?
Never thought about image in footer.. @tmmehta5 do you have a mockup how it is supposed to look like with the image? Or what kind of image is expected there.
iTwinUI team: if a user places an SVG in our footer currently the icon is not vertically centered. Should we update the CSS to handle this?
That should be left upto the user imo.
@veekeys The image of area under which product is being marketed. For example, iTwinJS.
I'm using Footer component in my react application. I'm creating a custom footer passing FooterElement[] to customElements prop of Footer component. I want to add an icon at the start of the footer. But the definition for FooterElement doesn't allow to do so. It accepts only following: type FooterElement = { title: string; url?: string | undefined; key?: keyof TitleTranslations | "copyright" | (string & Record<never, never>) | undefined; }
Steps to reproduce
<Footer className="footer-class" customElements={() => footerElement} />
const footerElement: FooterElement[] = [ { title: "xyz", url: "url to xyz" }, { title: "abc", url: "url to abc" } ];
Expected behavior
My requirement if that this array should accept app icon. So, I want above array to be like-
const footerElement: FooterElement[] = [ { icon:<svgIcon /> }, { title: "xyz", url: "url to xyz" }, { title: "abc", url: "url to abc" } ];
@FlyersPh9