Changes to components:
- Toolbar: Added support for action links. Use class
pe-action
.
Removed polythene-fastclick
as it is no longer needed - the tap response on mobile is now sufficiently fast.
Changes to components:
- Button
- The default side margin has been removed
- Add parent element with class
.pe-button-row
to re-add the margins, or add margins where needed
- List
- TextField and Search: option
focus
has been removed (because setting the focus state outside of an event does not work on iOS)- Use the
onChange
callback that returns the functionsetInputState
- see documentation for Mithril, documentation for React
- Use the
Bug fixes.
To make component packages more standalone, CSS classes are no longer exported by the component but from the common module polythene-css-classes
:
import buttonClasses from "polythene-css-classes/button"
All references to React 15 have been replaced with React 16.
Changes to components:
- Toolbar now has a default background color
Bug fixes (thanks sjungwirth and ItsLeeOwen!).
Updated for React 16.
Changes to components:
- Menu
- Option
reposition
is now by defaultfalse
- Option
- Icon
- Option
svg
must now use optioncontent
as well
- Option
Various bug fixes (thanks sjungwirth!).
Fix for newly introduced bug in button onclick handling.
- CSS can now optionally be read from files (as opposed to CSS-in-JS only); see CSS for more details.
addLayoutStyles
andaddTypography
are now both imported frompolythene-css
; see CSS.
Changes to components:
- All
- As consequence of the CSS change, the component method
theme
has been replaced withaddStyle
; see Styling with variables
- As consequence of the CSS change, the component method
- RadioGroup
onChange
now returns a state object that contains a variablevalue
- List
- Added option
all
, analogous to Tab'sall
- Added option
Various bug fixes.
Contains fixes for server-side rendering.
Changes to components:
- Dialog
- Option
footer
has been renamed tofooterButtons
to allow for more diverse footers - Added option
header
- Added option
fullBleed
to remove padding from the body element - Option
borders
has been changed from Boolean to String, with possible values: "always", "never", "overflow" (default)
- Option
- List
- Added option
padding
to optionally remove the default top and bottom padding - Added keyboard control
- Added option
- ListTile
- Added option
compactFront
to reduce the horizontal width offront
content - Added option
subContent
to show other types of content below the title (without height restriction) - Added option
header
- Added option
- Toolbar
- Added sub-component ToolbarTitle to improve styling
- Removed default background colors to better fit in a Dialog
Various bug fixes.
Changes to components:
- Dialog
- Option
fullscreen
has been renamed tofullScreen
for consistency
- Option
- RadioGroup
- Added option
all
- Added option
- Ripple
- "constrained" is now the default setting; use option
unconstrained
to unset the default
- "constrained" is now the default setting; use option
- Slider
- Option
step
has been renamed tostepSize
to prevent confusion with step count
- Option
- Spinner
- Renamed
iOSSpinner
toIOSSpinner
to work with React
- Renamed
Various bug fixes.