Skip to content

Commit

Permalink
chore: add a TODO note about default styles values
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Oct 12, 2021
1 parent aee62d6 commit 843b72e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ export default (args: PbEditorElementPluginArgs = {}): PbEditorPageElementPlugin
type: this.elementType,
elements: [],
data: {
// TODO: enable the user to provide default styles.
// It'd be better if no default styles were applied, or even better:
// if the default styles could be set via maybe the `Theme` object.
// We could also use the page element's factory function to provide defaults:
// `createBlock({ defaultStyles: { desktop: { ... }, tablet: { ... } } })`
settings: {
width: createInitialPerDeviceSettingValue(
{ value: "100%" },
Expand Down

0 comments on commit 843b72e

Please sign in to comment.