v0.9.13
Pre-release
Pre-release
Frontend
- Backwards Incompatible Migrated Kobweb's
Text
toSpanText
- Previously, Kobweb's
Text
tried to be smart and only wrapped its text in a span if aModifier
was passed in, but this was really subtle, and probably surprising, behavior. By renaming it, we now avoid a common import overlap between Kotlin'sText
and Kobweb's version. Additionally, the name makes it clearer that this is text wrapped in a<span>
block, and that that implementation will be consistent. - If you get a compile error around
Text
in your Kobweb project, you should be able to rename it toSpanText
.
- Previously, Kobweb's
- Updated Font Awesome support from v5 to v6
- Potentially backwards incompatible Some font awesome icon names have changed as part of the migration. Please use their icon search to figure out the new names.
- Added support for clamp, min, and max CSS functions whose output can be passed into relevant
Modifier
methods.- Thanks to @Ayfri and @conradboehnke for their support on this feature!
- The site's title is now automatically added to your app globals
- So you can access it using
AppGlobals["title"]
in your code, instead of hard-coding it, in case things change down the line.
- So you can access it using
- Fixed
Modifier.role(...)
, which is now correctly implemented as an HTML attribute and not a style. - Fixed various copy/paste issues with CSS class instances (see commit cec1f7b for the changes)