Comments (4)
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.
@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.
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.
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)
- _constants.scss is missing from mdc-theme.import.scss HOT 1
- Angular Material Tabs with sticky first tab
- The getting started guide: issues HOT 1
- [mdc-icon-button] unable to import core-styles mixin of icon-button as shown in documentation
- Unpkg: Source map for minified JS missing HOT 1
- MDCTopAppBar buttons ripple effect broken since 12.0.0 HOT 2
- Hi, I can't make a frame for the drawer, it's a problem
- Symmetric API for the Angular Material Icon Button HOT 1
- [MDCTextField] Trailing icons do not appear HOT 1
- the problem in running the program HOT 1
- [mdc-chip] css not applied to mdc-evolution-chip elements HOT 3
- Is there anyway we can force the dropdown select to always show below?
- [Chips] Filter chips not showing svg tick HOT 1
- `setAutovalidate()`/`getAutovalidate` name mismatch in readme
- Vertical mat-slider
- [mdc-theme] Contradicting advice on purpose of `$secondary`
- [Snackbar] screenreader leaves out "button" when reading message and action
- Tag for the version 14.1.0 is missing
- The release 14.1.0 isn't published on npmjs HOT 1
- Tone should work with css-variables
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-components-web.