feat: configurable default icon for ion-item detail-icon in provideIonicAngular

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
angular, typescript
領域
frontend

調査の方向性

まず provideIonicAngular と ion-menu-button のデフォルトアイコンに関する既存の設定を調べ、次に ion-item が detail="true" と detail-icon をどのように処理するかを追跡します。新しい設定プロパティによって、各 item に属性を指定しなくてもデフォルトの詳細アイコンが一貫して提供され、既存の設定動作に対応するカバレッジが確保されれば完了です。

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

説明

type: feature request
Prerequisites
Describe the Feature Request

A new config property to set the default icon for detail-icon on <ion-item>. Just as it works for setting the default icon for <ion-menu-button>

Describe the Use Case

We want to use our own custom icon for items with detail="true" and having to add the detail-icon attribute on every item is a lot of effort and prone to design issues if a developer forgets to do it.

Describe Preferred Solution

Add new config property

Describe Alternatives

No response

Related Code

No response

Additional Information

There was the same feature request already in https://github.com/ionic-team/ionic-framework/issues/19906
The answer with a custom wrapper component that default sets the attribute is imho not satisfying as it poses one critical problem: A default component renders markup which makes the Ionic default styling for items in lists, etc. with first-child selectors etc. not work anymore. This kind of breaks the framework and is not a good proposed solution

主要言語
TypeScript
スター
52.8k
フォーク
13.3k
平均マージ
3日 1時間
マージ済み PR(30日)
86

環境構築

はじめの一歩

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

ionic-team/ionic-framework のほかの issue

ionic-team/ionic-framework の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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