GithubHelp home page GithubHelp logo

Comments (4)

amsheehan avatar amsheehan commented on May 4, 2024 1

After discussing with the team, we are going to implement a dialog component without the use of the dialog element.

Part of this is because only one browser supports dialog, and it is still marked as experimental on MDN

That said, we will implement focus trapping and aria roles to keep it accessible.

This also means that once this story is finished we'll have a dialog component 👍

from material-components-web.

traviskaufman avatar traviskaufman commented on May 4, 2024 1

@mikegleasonjr It's being worked on currently! See our "What's the core team up to?" section in CONTRIBUTING.md to find out about what we're currently working on! We try to be as transparent as possible about it 😄

from material-components-web.

Garbee avatar Garbee commented on May 4, 2024

Here is a trick we can implement with dialog.... CSS Variables for adaptive width. The spec states that dialogs should be sized in units of 56px. Phones are like a 3 or 4 unit default and desktops like 8. So, we can set two root-level vars --mdc-dialog-unit-width: 56px; and --mdc-dialog-unit-count: 3. Media query for desktop to change the count, easy. Then for the dialog width we set it with width: calc(var(--mdc-dialog-unit-width) * var(--mdc-dialog-unit-count));. This will let developers do .app-dialog { --mdc-dialog-unit-count: 8; } for example to expand the width automatically by the proper number of units.

from material-components-web.

mikegleasonjr avatar mikegleasonjr commented on May 4, 2024

Hi guys, loving how the library is going. I was about to pull a 3rd party dependency in my project for modals. I am not ready to go live and I can live with window.alert for now but my question is, is there any ETA on this? Is there a roadmap for components integration? Thanks guys!

from material-components-web.

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.