Platform : condition for device types

Open
#948 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
50/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
markdown
Domain
documentation

Research direction

Open the platform utilities page at https://ionicframework.com/docs/utilities/platform and review the is(platformName: Platforms) documentation. Determine the conditions for the mobile, phablet, and tablet values, then update the page so those conditions and the observed overlap are clearly explained.

Written by the indexing model from the issue text.

Description

content

URL
https://ionicframework.com/docs/utilities/platform

What is missing or inaccurate about the content on this page?
About the method is(platformName: Platforms), it would be great to know which conditions make it answer true for "mobile" "phablet" and "tablet".
I always thought a phablet would always return true for both "mobile" and "tablet" but I've done tests with a Pixel 3 on Android Q with display set to small (high resolution) and it returns true for both "mobile" and "tablet" but false for "phablet".
It is very hard to tell if it's a bug or an undocumented feature.

Dominant language
MDX
Stars
621
Forks
3.2k
Avg merge
1d 2h
Merged PRs (30d)
86

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ionic-team/ionic-docs

All issues in ionic-team/ionic-docs

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.