Git Product home page Git Product logo

Comments (10)

gregorylegarec avatar gregorylegarec commented on June 2, 2024 2

🎉 👍
I made this branch a long time ago but I never pull-requested it. Please take all you need from it. https://github.com/gregorylegarec/cozy-ui/commits/feat/deprecate-modal-withcross

I took a particular attention to keep the code compatible with the use of withCross.

from cozy-ui.

ptbrowne avatar ptbrowne commented on June 2, 2024 1

I agree that the naming is bad.

To me a modal should be closable=true by default. The closable property would also control that the close button is shown and that the modal can be closed by clicking outside.

from cozy-ui.

CPatchane avatar CPatchane commented on June 2, 2024 1

On your properties withClosingButton and disallowClosing : I do not understand the interaction between your properties and am generally in favor of reducing the API of a component.

@ptbrowne I agree but I could need the clickoutside without the cross button if the cross button is already handled by the intent itself.

from cozy-ui.

gregorylegarec avatar gregorylegarec commented on June 2, 2024 1

@ptbrowne Yep

from cozy-ui.

ptbrowne avatar ptbrowne commented on June 2, 2024

On your properties withClosingButton and disallowClosing : I do not understand the interaction between your properties and am generally in favor of reducing the API of a component.

For example with your names, what happens when disallowClosing=true and withClosingButton=true ?

from cozy-ui.

ptbrowne avatar ptbrowne commented on June 2, 2024

@enguerran It seems to me by looking at the history that you added the withCross property. What do you think ?

from cozy-ui.

enguerran avatar enguerran commented on June 2, 2024

I think THERE IS NO NEED for uppercase in issue content.
Nevertheless, I can remember I added that when I was working on very short deadline (#78) and it was good enough in those dark times.
But usage and experience may teach different conclusions and I guess it would be good to upgrade this API.

Let write down a standalone version in the styleguide and see/expose the different and exhaustive wanted usages.

from cozy-ui.

gregorylegarec avatar gregorylegarec commented on June 2, 2024

@ptbrowne It is old stuff, but I remember having identified a case where a modal should not be closeable in other way than choosing for two options. But if it's not needed right now let's remove this feature and focus on renaming this prop while keeping retro-compatibility. Go for a pull-request @CPatchane :)

from cozy-ui.

ptbrowne avatar ptbrowne commented on June 2, 2024

@ptbrowne It is old stuff, but I remember having identified a case where a modal should not be closeable in other way than choosing for two options.

So it is closable=false right ?

from cozy-ui.

ptbrowne avatar ptbrowne commented on June 2, 2024

Closed via #237

from cozy-ui.

Related Issues (20)

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.