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

Commit

Permalink
Merge pull request #66 from irmerk/jl-issue35-sticky-toolbar
Browse files Browse the repository at this point in the history
feat(*): ap design sync - I35
  • Loading branch information
jolanglinais authored Jul 3, 2019
2 parents 7490cfb + 8a5cd4b commit c7a3945
Show file tree
Hide file tree
Showing 12 changed files with 664 additions and 479 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,24 @@ It correctly bundles React in production mode and optimizes the build for the be
The build is minified and the filenames include the hashes.<br>
Your app is ready to be deployed!

## Styling

You can style the toolbar of this components, as well as the width of the editor:

#### `editorProps`

This is an object with the following possible css inputs as strings:
- `BUTTON_BACKGROUND_INACTIVE`
- `BUTTON_BACKGROUND_ACTIVE`
- `BUTTON_SYMBOL_INACTIVE`
- `BUTTON_SYMBOL_ACTIVE`
- `DROPDOWN_COLOR`
- `TOOLBAR_BACKGROUND`
- `TOOLTIP_BACKGROUND`
- `TOOLTIP`
- `TOOLBAR_SHADOW`
- `WIDTH`

---

<a href="https://www.accordproject.org/">
Expand Down
Binary file added assets/APLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion examples/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ Another video:
<video src="https://www.youtube.com/embed/cmmq-JBMbbQ"/>`;

const propsObj = {
WIDTH: '600px',
};

/**
* Simple demo component that tracks whether to lockText
* and whether to use markdown mode.
Expand Down Expand Up @@ -93,7 +97,7 @@ function Demo() {
</Grid.Column>

<Grid.Column>
<SlateAsInputEditor readOnly={false} lockText={true} plugins={plugins} value={slateValue} onChange={onSlateValueChange}/>
<SlateAsInputEditor readOnly={false} lockText={true} plugins={plugins} value={slateValue} onChange={onSlateValueChange} editorProps={propsObj} />
</Grid.Column>
</Grid>
<Divider vertical>Preview</Divider>
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@
"style-loader": "^0.23.1",
"styled-components": "^4.3.2"
}
}
}
Loading

0 comments on commit c7a3945

Please sign in to comment.