Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

feat(Segment): base implementation #103

Merged
merged 4 commits into from
Aug 21, 2018
Merged

Conversation

kuzhelov
Copy link
Contributor

@kuzhelov kuzhelov commented Aug 17, 2018

Segment

Used to create grouping of related content.

TODO

  • Conformance test
  • Minimal doc site example
  • Stardust base theme
  • Teams Light theme
  • Teams Dark theme
  • Teams Contrast theme
  • Confirm RTL usage
  • W3 accessibility check
  • Stardust accessibility check
  • Update glossary props table
  • Update the CHANGELOG.md

API Proposal (default)

image

content

Is used in shorthand version of Segment.

<Segment content="Content of Segment" />
<div>Content of Segment</div>

Children API

Renders children if provided.

<Segment>Content of Segment</Segment>
<div>Content of Segment</div>

@codecov
Copy link

codecov bot commented Aug 17, 2018

Codecov Report

Merging #103 into master will increase coverage by 0.25%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #103      +/-   ##
==========================================
+ Coverage   88.13%   88.39%   +0.25%     
==========================================
  Files          43       45       +2     
  Lines         725      741      +16     
  Branches       96      106      +10     
==========================================
+ Hits          639      655      +16     
  Misses         83       83              
  Partials        3        3
Impacted Files Coverage Δ
src/components/Segment/index.ts 100% <100%> (ø)
src/index.ts 100% <100%> (ø) ⬆️
src/components/Segment/Segment.tsx 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9988b4...a08a654. Read the comment docs.

import * as PropTypes from 'prop-types'
import { customPropTypes, UIComponent, childrenExist } from '../../lib'

export type IconXSpacing = 'none' | 'before' | 'after' | 'both'
Copy link
Member

Choose a reason for hiding this comment

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

What is the IconXSpacing here good for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks - it should be removed from here!

@kuzhelov kuzhelov merged commit f5b35af into master Aug 21, 2018
@kuzhelov kuzhelov deleted the feat/base-segment-component branch August 29, 2018 21:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants