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

Dropbox component not working with IDropdownItem #237

Closed
1 task done
calebeaires opened this issue May 31, 2021 · 2 comments
Closed
1 task done

Dropbox component not working with IDropdownItem #237

calebeaires opened this issue May 31, 2021 · 2 comments
Labels
bug Issues that represent a bug.

Comments

@calebeaires
Copy link

  1. Vite: 2.0
  2. Vue: 3.0.5
  3. Inkline: 3.0.0-beta.5
  • I'm submitting a:

    • Bug Report
  • Steps to reproduce

index.html

<div id="app"></div>
<script type="module">
  import { createApp } from "vue";
  import App from "./App.vue";

import '@inkline/inkline/src/inkline.scss'
export { Inkline } from '@inkline/inkline/src'
export * as components from '@inkline/inkline/src/components/index.js'
const app = createApp(App);

  app.use(Inkline, {components});
  app.config.globalProperties.$inkline.options.colorMode = "light";

  app.mount("#app");
</script>

App.vue

<template>
  <div>
    <i-dropdown>
      <i-button>Dropdown</i-button>
      <i-dropdown-menu>
        <i-dropdown-item href="">Action</i-dropdown-item>
        <i-dropdown-item disabled>Something disabled here</i-dropdown-item>
        <i-dropdown-divider />
        <i-dropdown-item>Separated item</i-dropdown-item>
      </i-dropdown-menu>
    </i-dropdown>
  </div>
</template>

Result

image

Dropbox, tabs and select components has issues with css. Is the setup wrong?

@calebeaires calebeaires added the bug Issues that represent a bug. label May 31, 2021
@alexgrozav
Copy link
Member

alexgrozav commented May 31, 2021

Hey! The dropdown component now has a new simplified syntax.

<i-dropdown>
    <i-button>Dropdown</i-button>
    <template #body>
        <i-dropdown-item>Action</i-dropdown-item>
        <i-dropdown-item>Another action</i-dropdown-item>
        <i-dropdown-item disabled>Disabled action</i-dropdown-item>
        <i-dropdown-divider />
        <i-dropdown-item>Separated item</i-dropdown-item>
    </template>
</i-dropdown>

You can access the new docs (currently in progress) by doing the following:

I'll be hosting the beta docs as soon as I'm done with writing the last form documentation parts. :)

@calebeaires
Copy link
Author

Did it. Now I see! 👍

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

No branches or pull requests

2 participants