- updates components to use shadow DOM or scoped if they require css variables - moves global styles to an external stylesheet that needs to be imported - adds support for additional colors and removes the Sass loops to generate colors for each component - several property renames, bug fixes, and test updates Co-authored-by: Manu Mtz.-Almeida <manu.mtza@gmail.com> Co-authored-by: Adam Bradley <adambradley25@gmail.com> Co-authored-by: Cam Wiegert <cam@camwiegert.com>
ion-show-when
ShowWhen is a component that will automatically show it's child contents when a query evaluates to true. ShowWhen can watch for platform changes, mode changes, css media queries, and device orientation.
Properties
mediaQuery
string
If the current media query matches this value, the element will show.
mode
string
If the current platform matches the given value, the element will show. Accepts a comma separated list of modes to match against.
or
boolean
If false, and two or more conditions are set, the element will show when all are true. If true, and two or more conditions are set, the element will show when at least one is true.
orientation
string
If the current orientation matches this value, the element will show.
platform
string
If the current platform matches the given value, the element will show. Accepts a comma separated list of platform to match against.
size
string
If the current screen width matches the given size, the element will show. Uses the build in sizes of xs, sm, md, lg, xl.
Attributes
media-query
string
If the current media query matches this value, the element will show.
mode
string
If the current platform matches the given value, the element will show. Accepts a comma separated list of modes to match against.
or
boolean
If false, and two or more conditions are set, the element will show when all are true. If true, and two or more conditions are set, the element will show when at least one is true.
orientation
string
If the current orientation matches this value, the element will show.
platform
string
If the current platform matches the given value, the element will show. Accepts a comma separated list of platform to match against.
size
string
If the current screen width matches the given size, the element will show. Uses the build in sizes of xs, sm, md, lg, xl.
Built with StencilJS