reactjs / reactjs/react.dev

components are skiping the parent priority when running on build mode to find their width

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

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

主要言語
JavaScript
スター
11.8k
フォーク
7.9k
平均マージ
1日 11時間
マージ済み PR(30日)
11

説明

that's basically it, the issue is described there, more information about it:

in the following structure, where the input has a width of 85% it is taking the width of the nth parent instead of the direct one.

given this structure the input element is given the relative width according to the width of the div with class login-content container ->

<div class="width:100vw">
     <div class='width:50%'>
           <div class= 'width:100%'>
                 <input class='width:85%'

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

Issue の入れ子になった幅の例から始め、React ドキュメントサイトを使って build モードでの動作を再現します。入力幅が親要素を通じてどのように解決されるかを追跡します。完了条件は、入力が n 番目の祖先要素ではなく直接の親要素の幅を使用することです。

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

評価

技術スタック
javascript, react
領域
frontend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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