5.1.0 #353
felix-bohlin
announced in
Announcements
5.1.0
#353
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Fixed
*instead of:root. This was causing style recalculations on every element when the palette changed, oops. Hopefully now, recalculations will only happen on elements that use palette variables.The heavy color math is now properly scoped down to
:root, severity classes (ex.ui-warning), and invalid components ([class*="ui-"]:has(:user-invalid)).theme.palettelayer, so hopefully it will solve some potential specificity issues.Changed
criticalprop toerrorfor validation in form components (TextField,Checkbox,Radio,Switch,Select,ClassicSelect,Textarea). Whilecriticalremains the standard for severity coloring (e.g. Buttons, Callouts, Badges),errormakes more contextual sense for validation states.Added
.ui-paletteutil class. If you are building something where you want to make use of the palette you can just use that class and be able to use the palette right there.Migration
The
opui-css/open-propsexport no longer bundles OPUI's custom palette variables (--color-*and--gray-*). It now strictly represents the underlying Open Props tokens.If you were relying on OPUI’s dynamic palette colors while importing the
open-propssubpath, you must now explicitly import the palette module alongside it:import 'opui-css/open-props'; + import 'opui-css/core/palette.css';Alternately, you can import the default full bundle (
import 'opui-css';) which includes everything.Thank you
This discussion was created from the release 5.1.0.
All reactions