Skip to content

Conversation

@yuriy-fix
Copy link
Contributor

Base automatically changed from feat/vaadin-24-to-25-upgrade-guide to main October 23, 2025 11:26
@mshabarov
Copy link
Contributor

Fixes #4688

@yuriy-fix yuriy-fix force-pushed the feat/vaadin-24-to-25-upgrade-guide-ds branch from 0540e2e to 3a906f7 Compare October 24, 2025 06:49
@CLAassistant
Copy link

CLAassistant commented Oct 24, 2025

CLA assistant check
All committers have signed the CLA.


The special [filename]`document.css` file (for loading styles into the document root in embedded components) is removed as no longer necessary.

=== Themes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be merged with the "Changes in Theming System" section, i.e. "Changes in Theming System" content can be just moved to "=== Themes and Styling" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adjusted the sections

@vaadin vaadin deleted a comment from github-actions bot Oct 24, 2025
@github-actions
Copy link

github-actions bot commented Oct 24, 2025

AI Language Review

The changes between the old and new versions of this AsciiDoc file appear to primarily involve updates and expansions to the guide content. However, no issues that require immediate improvement have been identified in the modified sections of the document. The content is clear, accurate, and adheres to the guidelines provided.

@yuriy-fix yuriy-fix marked this pull request as ready for review October 26, 2025 18:27
@vursen vursen force-pushed the feat/vaadin-24-to-25-upgrade-guide-ds branch from 2204e56 to df5a612 Compare October 27, 2025 13:59
@import "@vaadin/vaadin-lumo-styles/lumo.css";
----

All Lumo styles, including badges, but excluding Lumo Utility Classes are included by default when the Lumo theme is loaded. To load the utility classes, add the following line to a stylesheet:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably mention the compact preset that can be loaded as follows:

@import "@vaadin/vaadin-lumo-styles/presets/compact.css";

Component overlays (like Dialog or the Combo Box drop-down) are no longer rendered outside of the component itself. This causes the following breaking changes to overlay styling:

* The `overlayClass` property and the [methodname]`setOverlayClassName` method in Flow are gone. Apply a normal class name to the component instead.
* The `vaadin-xyz-overlay` (such as `vaadin-dialog-overlay`) elements have been removed (as they are now unnecessary). Refactor any CSS targeting these elements to target the component itself instead (e.g. `vaadin-dialog` instead of `vaadin-dialog-overlay`). Other CSS selectors are unaffected by this change.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The vaadin-xyz-overlay (such as vaadin-dialog-overlay) elements have been removed (as they are now unnecessary)

This sounds quite confusing. Let's replace "have been removed" with something like this:

elements are now in placed Shadow DOM of their respective host elements, and are not supposed to be targeted by global CSS, but still provide same set of stylable parts.

==== Context Menu
The [methodname]`add` method has been removed from the Flow [classname]`ContextMenu`. Instead, use [methodname]`addItem` to add menu items, or [methodname]`addComponent` to add generic components without wrapping them into a menu item.

==== Popover
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should we sort this list alphabetically? It's a bit unexpected that Popover comes after Context Menu.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

vursen and others added 5 commits October 28, 2025 09:16
Copy link
Contributor

@rolfsmeds rolfsmeds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't read thru all the components stuff but made some suggestions.

@import "@vaadin/vaadin-lumo-styles/utility.css";
----

Vaadin 25 also supports Tailwind CSS utility classes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking maybe we shouldn't mention TW here as it's neither all that relevant for upgraders nor actually fully implemented yet, and will be "experimental" in 25.0 if we manage to get it there.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed


The [classname]`WebComponentExporter` feature in Flow allows you to export Flow components as Web Components for embedding into non-Vaadin user interfaces. In Vaadin 25, stylesheets loaded into exported components using the [classname]`@CssImport` annotation only load those styles into the exported component’s shadow DOM, not the surrounding page as before. To load the same styles into the surrounding page, import the stylesheet to it separately.

=== Overlays
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this makes more sense under "Components"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants