Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web-extension - Add a devtool config object to meta and use it to better present components inside the web extension #101

Closed
andreaSimonePorceddu opened this issue Nov 2, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@andreaSimonePorceddu
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Sometimes the style of a component couldn't be enough consistent to present it in a nice way inside the web extension.

Describe the solution you'd like
In these cases, it could be needed to add an additional style to the component, in order to present it in a better way inside the web extension. We can add a devtoolConfig property inside meta to define these additional behaviours.

Example

const Flex = {
  tag: 'div',
  style: {
    display: 'flex'
  },
  meta: {
    devtoolConfig: {
      label: 'Flex Div',
      style: {
        size: '100px',
        bg: 'gray.light'
      },
      background: 'white',
    }
  }
}
@mauroerta mauroerta added the enhancement New feature or request label Nov 2, 2021
andreaSimonePorceddu added a commit that referenced this issue Nov 2, 2021
it coloses the feat #101
@andreaSimonePorceddu andreaSimonePorceddu mentioned this issue Nov 2, 2021
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants