Skip to content

Add Definition List component#10291

Merged
brad-decker merged 4 commits intodevelopfrom
add-definition-list
Jan 28, 2021
Merged

Add Definition List component#10291
brad-decker merged 4 commits intodevelopfrom
add-definition-list

Conversation

@brad-decker
Copy link
Copy Markdown
Contributor

@brad-decker brad-decker commented Jan 26, 2021

Requires: #10289

Rationale

Using a <dl> for terms and definitions is good, semantic markup. We have a new component introduced in the add-ethereum-chain UI that has terms in bold and definitions or values in normal text below the bolded term. This component allows passing a simple dictionary object and gets a formatted <dl> out of it. Also allows for passing tooltips as an object for the use case where the "terms" are the "keys" and the "definitions" are "values". Examples of each below

Term with Definition
Key with Value

You can also control the typography for the two different types (definition, term)

Typography controls

You can also expand the space between entries via gapSize prop

gapSize control

Additional notes

This also cleans up some prop-type warnings from my previous work :(

@brad-decker brad-decker changed the title Add box component Add Definition List component Jan 26, 2021
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [3127e33]
Page Load Metrics (861 ± 50 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6512881157
domContentLoaded508108685410148
load510108786110450
domInteractive508108685410148

Base automatically changed from add-box-component to develop January 27, 2021 17:54
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [8697a0e]
Page Load Metrics (845 ± 153 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaintNaNNaNNaNNaNNaN
domContentLoaded4011726842316152
load4011740845319153
domInteractive4001725842316152

@brad-decker brad-decker marked this pull request as ready for review January 27, 2021 18:31
@brad-decker brad-decker requested a review from a team as a code owner January 27, 2021 18:31
@brad-decker brad-decker requested a review from Gudahtt January 27, 2021 18:31
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [ea97da2]
Page Load Metrics (587 ± 28 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint44715684
domContentLoaded4137215865828
load4157225875828
domInteractive4137215865828

Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

Looks good! I appreciate the commitment to using proper HTML tags. Just one minor comment.

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [25500b3]
Page Load Metrics (856 ± 21 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint691078594
domContentLoaded7879378544421
load7909398564321
domInteractive7869368544421

@brad-decker brad-decker merged commit 419897c into develop Jan 28, 2021
@brad-decker brad-decker deleted the add-definition-list branch January 28, 2021 15:54
@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants