Make ModalDialog follow the shared themes of wicket-extensions

未关闭
#1,645 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
63/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
css, java
领域
frontend

调研方向

Start with ajax/markup/html/modal/theme/theme.css and compare how the shared themes used by DynamicDataTable set their theme properties. Then find the modal dialog example and use its theme drop-down as a reference. Done means the dialog and its optional header, body, and footer follow the shared theme properties, retain their current appearance without a theme, and require no inline styles.

由索引模型根据 Issue 内容生成。

描述

Part of #1639.

ModalDialog's default look comes from its DefaultTheme behavior (ajax/markup/html/modal/theme/theme.css): a dimmed overlay, a white dialog with a shadow, and nothing for a title bar or buttons, which every application styles itself. A page using the shared themes of #1638 (DynamicDataTable, ProgressBar, CollapsiblePanel, FloatingPanel) therefore shows a modal dialog that ignores the theme: white on a dark theme, with the application's own colors for its header.

Proposal:

  • theme.css reads the theme properties, with the current colors as fallbacks: the overlay dims with --wicket-theme-veil, the dialog takes --wicket-theme-surface, --wicket-theme-text and --wicket-theme-border, and its color scheme follows --wicket-theme-color-scheme, so form controls inside a dark-themed dialog are dark too.
  • Optional classes for the usual parts of a dialog (a header in the theme's primary colors, like a table header or the title bar of a FloatingPanel, a body and a footer), so a dialog content panel gets the themed look by using them, without CSS of its own.
  • As for the other themed components: the properties are only set inside a theme class, so an application that does not use a theme sees no change, and no inline style is needed, so it keeps working under a strict Content Security Policy.
  • The modal dialog example gets a theme drop-down, like the DynamicDataTable example.
主要语言
Java
星标
800
派生
437
平均合并
21 小时 36 分钟
30 天内合并 PR
167

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/wicket 的其他 Issue

查看 apache/wicket 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。