Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

bug(mat-dialog): default Dialog backdrop color is hardcoded black 32% instead of using mat-sys-scrim

オープン
#33,578 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
angular, scss, typescript
領域
frontend

調査の方向性

src/cdk/overlay/_index.scss の参照されている backdrop スタイルから始め、Angular Material のダイアログ概要の再現を調べます。ダイアログの overlay がどのように scrim スタイルを受け取るかを追跡し、既存の mat-sys-scrim トークンがそこで利用可能か確認します。デフォルトの scrim が mat-sys-scrim を使用し、ライトテーマとダークテーマで期待されるダイアログの動作が維持されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

area: cdk/overlay P3
Description

Not sure if this is a bug or intentional, please advise

The default Angular Material behavior when opening a Dialog is to add a 32% opacity black scrim for the overlay. This is not in any way customizable and instead is hardcoded in the Angular CDK overlay implementation: https://github.com/angular/components/blob/501d6744b377e1ef7d1cf7e86edcc0eedbf755e7/src/cdk/overlay/_index.scss#L9

Since there is an existing mat-sys-scrim token for this exact purpose I recommend it be used for customization purposes and for the ability to account for light and dark themes.

Reproduction

https://material.angular.dev/components/dialog/overview

Expected Behavior

mat-sys-scrim token is used for scrims

Actual Behavior

Hardcoded 32% opacity black value is used for the scrim

Environment
  • Angular: v22
  • CDK/Material: v22
  • Browser(s): any
  • Operating System (e.g. Windows, macOS, Ubuntu): any
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 7時間
マージ済み PR(30日)
92

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

angular/components のほかの issue

angular/components の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。