Khan / Khan/aphrodite

Add a public API to return the definition for a style

Open
#307 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.3k
Forks
187
PR merge metrics
No merged PRs in 30d

Description

I was experimenting with Storybook's jsx addon. Here's its output for a component that's passed an aphrodite style as a prop:
screen shot 2018-03-08 at 2 45 54 pm

I would like to update the plugin to handle aphrodite styles more gracefully by being display the definition for the rule instead of the aphrodite internals.

Proposed API:
```
function getStyleDefinition(style) => Object
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing Aphrodite's style representation and public exports, then compare the current object shown in the Storybook jsx addon output with the requested definition. Done means a public getStyleDefinition(style) API returns the rule definition rather than Aphrodite internals, with coverage for the relevant style forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.