ionic-team / ionic-team/ionic-framework
feat: Expose matchBreakpoint
- Langage dominant
- TypeScript
- Étoiles
- 52.7k
- Forks
- 13.3k
- Merge moyen
- 1 j 15 h
- PR mergées (30 j)
- 51
Description
# Feature Request
**Ionic version:**
[x] **5.1.0**
**Describe the Feature Request**
I'm new to Ionic, and AFAIK, there's no _clean_ way to access ionic breakpoints in js. We can hardcode something like `window.matchMedia("(min-width: someSMValue)").matches` but we have to maintain this value and make sure that our "sm" is the same "sm" used in ionic.
**Describe Preferred Solution**
I would be usefull if this file was in the public api: https://github.com/ionic-team/ionic/blob/master/core/src/utils/media.ts
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Start with core/src/utils/media.ts and inspect how matchBreakpoint is currently defined. Trace how Ionic utilities are exposed through the public API, then make the breakpoint helper available to JavaScript consumers without requiring duplicated breakpoint values. Done means consumers can access the helper through Ionic's public API.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- typescript
- Domaine
- frontend
- Type d'issue
- Fonctionnalité
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100