Skip to content

[#6376] Redesign Roll Table sheet using dnd5e2 styling#6377

Merged
arbron merged 3 commits into
5.3.xfrom
roll-table-sheet
Jan 29, 2026
Merged

[#6376] Redesign Roll Table sheet using dnd5e2 styling#6377
arbron merged 3 commits into
5.3.xfrom
roll-table-sheet

Conversation

@arbron

@arbron arbron commented Nov 7, 2025

Copy link
Copy Markdown
Collaborator

Implements a system version of the roll table sheet that uses the system's styling. This doesn't bother rewriting the HTML, but makes certain targeted changes on render to ensure the proper classes are added and the dnd5e checkboxes are used.

Roll Table Re-design

Core's edit/view toggle is replaced with an edit slider in the header like other 5e sheets. In order to make this easier, some of the system's mode toggle code was changed to be more similar to how core's sheet is implemented (adding isEditMode property and using a changeMode action rather than a direct listener. None of these should be breaking changes.

Some changes were also made to sheet styles to make them more widely available and item's .item-image header styling was made into a more generic .document-image to be usable across sheets.

Closes #6376

@arbron arbron self-assigned this Nov 7, 2025
@arbron arbron added the ui User interface related features or bugs label Nov 7, 2025
@Fyorl Fyorl added compatibility Relating to compatibility issues with new core versions priority: medium labels Nov 8, 2025
@arbron
arbron changed the base branch from 5.2.x to 5.3.x January 26, 2026 18:21
Implements a system version of the roll table sheet that uses the
system's styling. This doesn't both rewriting the HTML, but makes
certain targeted changes on render to ensure the proper classes
are added and the dnd5e checkboxes are used.

Core's edit/view toggle is replaced with an edit slider in the
header like other 5e sheets. In order to make this easier, some of
the system's mode toggle code was changed to be more similar to
how core's sheet is implemented (adding `isEditMode` property and
using a `changeMode` action rather than a direct listener. None of
these should be breaking changes.

Some changes were also made to sheet styles to make them more
widely available and item's `.item-image` header styling was made
into a more generic `.document-image` to be usable across sheets.

Closes #6376

@Fyorl Fyorl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks really good. Some style nitpicks:

Non-transparent background here, if you notice behind the rounded corner:

Image

Would be nice to get these controls on a single line:

Image

In dark mode these inputs blend into the odd row background colour. Sometimes we do that on purpose, but in this context of a table with alternating row colours, it looks weird. These probably need to be given a translucent black background.

Image

These row backgrounds don't go to the end of the row on the right:

Image

Can we use dnd5e-icons for these SVGs so that we can give them more appropriate colours for dark mode?

Image

The table description is row-wise rather than columnar:

Image

I also noticed that the summary tab doesn't absorb extra space when the sheet is resized, but that seems to be an issue for the core sheet too.

Comment thread module/applications/api/primary-sheet-mixin.mjs
Comment thread module/applications/api/application-v2-mixin.mjs Outdated
Comment thread module/applications/roll-table-sheet.mjs Outdated
@arbron arbron added this to the D&D5E 5.3.0 milestone Jan 29, 2026
@arbron

arbron commented Jan 29, 2026

Copy link
Copy Markdown
Collaborator Author

These row backgrounds don't go to the end of the row on the right:

Image

This is the result of scrollbar-gutter: stable on the scrollable table. I swapped it over to auto since I'm not sure how much of a concern that is here.

Can we use dnd5e-icons for these SVGs so that we can give them more appropriate colours for dark mode?

Image

I made this swap, but it doesn't help with the default icons because the core SVG that is used doesn't have the necessary --icon-fill variable. I took a look and BaseTableResult doesn't have a place for setting a default icon, so we can't swap it that way. Perhaps we could have a system migration to swap any usage of the core D20 icon with one of our own so it can be colored properly.

@arbron
arbron requested a review from Fyorl January 29, 2026 05:43
@arbron

arbron commented Jan 29, 2026

Copy link
Copy Markdown
Collaborator Author

Hmm, swapping to dnd5e-icon also means that editImage doesn't work because it deliberately throw an error when used on anything but an <img> element.

@Fyorl Fyorl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hmm, swapping to dnd5e-icon also means that editImage doesn't work because it deliberately throw an error when used on anything but an <img> element.

That's fine, let's pull this change out. It's not something that we need to fix.

@arbron
arbron merged commit d799470 into 5.3.x Jan 29, 2026
@arbron
arbron deleted the roll-table-sheet branch January 29, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compatibility Relating to compatibility issues with new core versions priority: medium ui User interface related features or bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Roll table sheet doesn't get proper styling for system enrichers

2 participants