Skip to content
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

classFooter is not respected and is not part of the generated types #1265

Open
danielo515 opened this issue Mar 2, 2024 · 1 comment
Open

Comments

@danielo515
Copy link
Contributor

danielo515 commented Mar 2, 2024

Describe the bug

This is hard to reproduce, but in the generated typescript types, the classFooter is not there:

import { SvelteComponent } from "svelte";
import type { Dismissable, SizeType } from '../types';
import type { ModalPlacementType } from '../types';
declare const __propDef: {
    props: import("svelte/elements").HTMLAnchorAttributes & {
        tag?: string | undefined;
        color?: "gray" | "red" | "yellow" | "green" | "indigo" | "purple" | "pink" | "blue" | "light" | "dark" | "default" | "dropdown" | "navbar" | "navbarUl" | "form" | "primary" | "orange" | "none" | undefined;
        rounded?: boolean | undefined;
        border?: boolean | undefined;
        shadow?: boolean | undefined;
        node?: HTMLElement | undefined;
        use?: import("svelte/action").Action<HTMLElement, any, Record<never, any>> | undefined;
        options?: object | undefined;
        class?: string | undefined;
        role?: string | undefined;
    } & Dismissable & {
        open?: boolean | undefined;
        title?: string | undefined;
        size?: SizeType | undefined;
        placement?: ModalPlacementType | undefined;
        autoclose?: boolean | undefined;
        backdropClass?: string | undefined;
        bodyClass?: string | undefined;
        classBackdrop?: string | undefined;
        classDialog?: string | undefined;
        defaultClass?: string | undefined;
        outsideclose?: boolean | undefined;
        dialogClass?: string | undefined;
    };
    events: {
        wheel: WheelEvent;
    } & {
        [evt: string]: CustomEvent<any>;
    };
    slots: {
        header: {};
        default: {};
        footer: {};
    };
};
export type ModalProps = typeof __propDef.props;

Also, using it has no effect, the provided class is not added to the footer

Reproduction

https://stackblitz.com/edit/sveltejs-kit-template-default-yhaik4?file=src%2Froutes%2F%2Bpage.svelte

Flowbite version and System Info

System:
    OS: macOS 13.4
    CPU: (10) arm64 Apple M2 Pro
    Memory: 60.70 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.18.0 - ~/.asdf/installs/nodejs/18.18.0/bin/node
    Yarn: 1.22.21 - /opt/homebrew/bin/yarn
    npm: 9.8.1 - ~/.asdf/plugins/nodejs/shims/npm
    pnpm: 8.11.0 - ~/.asdf/installs/nodejs/18.18.0/bin/pnpm
    bun: 1.0.26 - ~/.bun/bin/bun
  Browsers:
    Chrome: 122.0.6261.94
    Safari: 16.5
  npmPackages:
    flowbite-svelte: ^0.44.24 => 0.44.24
    svelte: ^4.2.12 => 4.2.12
Copy link

stackblitz bot commented Mar 2, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant