Giter VIP home page Giter VIP logo

flexilla's People

Contributors

johnkat-mj avatar tresor-kasenda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ronnycoding

flexilla's Issues

Change library synthax

when we trying to use the accordion we need to implement the accordion instead of

import { Accordion } from "@flexilla/flexilla";

new Accordion("selector", "property");

or

let accc = document.querySelector("[data-accordion]")
new Accordion(accc, "property");

Add Close Strategy to Tooltip Component

Description:

We need to enhance the tooltip component by adding a close strategy feature. This feature will allow the tooltip to be closed when clicking inside it or not, based on the user's preference.

Current Behavior:

  • The tooltip can be toggled by clicking the associated element.
  • There is no option to specify a close strategy, making it inflexible for different use cases.

Desired Behavior:

  • Add an option to set a close strategy for the tooltip.
  • The close strategy should allow:
    1. Closing the tooltip when clicking inside it.
    2. Keeping the tooltip open when clicking inside it.

Expected Behavior:

  • The tooltip should close or stay open based on the specified close strategy.

Suggested Solution:

  1. Add a configuration option to the tooltip component to specify the close strategy.
  2. Implement logic to handle the closing of the tooltip based on the chosen strategy.

Writing documentation

It's can helps us to know how to use this package and give us more examples

Content

  • Init documentation
  • single component page
  • Build Home page
  • Change log page
  • Showcases

Getting Started

  • Introduction
  • Framework guide

Components

  • Accordion
  • auto resize area
  • collapse
  • custom range
  • dark mode
  • dismissible
  • dropdown
  • modal
  • offcanvas
  • popper
  • tabs
  • tooltip/popover

Uncaught DOMException on Collapse

While using autoInit methode from Collapse

  • collapse/:1 Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '0' is not a valid selector.
    at new a (..../collapse/dist/collapse.js?t=1713360587678:46:47)
    at a.autoInit (..../collapse/dist/collapse.js?t=1713360587678:62:5)

Change library synthax

when we trying to use the accordion we need to implement the accordion instead of

import { Accordion } from "@flexilla/flexilla";

new Accordion("selector", "property");

or

let accc = document.querySelector("[data-accordion]")
new Accordion(accc, "property");

Accordion & Collapsible Components Resizing Issue

Description:

When using the accordion component, there is a problem with hiding and showing content. The method used to toggle the content's visibility changes the height property between 0 and the actual content size. However, this causes an issue when resizing the window. For example, on a desktop, the content height might be set to 200px, but when the window is resized, the content size may change based on the text. This can result in the content being partially hidden if the new content height exceeds the initially set height (e.g., the content height might become 240px, but the initial height was set to 200px).

Steps to Reproduce:

  1. Use the accordion component and expand a section with content.
  2. Resize the window (e.g., make it smaller).
  3. Observe that the content may not fully display if the content height changes with the window size.

Expected Behavior:

The accordion component should dynamically adjust the height to fit the content size, even when the window is resized.

Actual Behavior:

The content height remains fixed, causing parts of the content to be hidden if the content size changes.

Suggested Solution:

Instead of setting a fixed height for the accordion content, use CSS properties such as max-height with a transition, and set it to a large value that can accommodate dynamic content changes.

Change library synthax

when we trying to use the accordion we need to implement the accordion instead of

import { Accordion } from "@flexilla/flexilla";

new Accordion("selector", "property");

or

let accc = document.querySelector("[data-accordion]")
new Accordion(accc, "property");

Popper Element Positioning Problem with Overflow and Space in Containers

Description:
There is a problem with how the popper element in the library behaves depending on its position style. Currently, the popper works well when the position is set to absolute. However, if the popper is inside a container like a table cell, setting position: absolute; makes it overflow outside the container, which is not desirable.

On the other hand, if we set position: fixed;, the popper doesn't overflow, but it also doesn't take up any space within the container, making it difficult to manage its placement properly. This issue can happen not just with tables but with any other container element.

Expected Behavior:

  • The popper should position correctly inside its container without overflowing, while still being properly placed relative to its parent element.

Current Behavior:

  • With position: absolute;, the popper overflows the container's boundaries.

Possible Solution:

  • Investigate alternative positioning methods or adjustments that allow the popper to be positioned correctly within containers like table cells or other elements, without causing overflow or space issues.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.