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

allow user to choose specific style type #23

Open
nanomosfet opened this issue Dec 4, 2018 · 0 comments
Open

allow user to choose specific style type #23

nanomosfet opened this issue Dec 4, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@nanomosfet
Copy link
Owner

right now there is a file called style-map.js
style-map.js

const baseImage = 'w-100 rounded-top mx-auto'
const baseBox = 'mt-1 px-1 pt-2 text-center h-100'
const baseBoxMain = 'my-1 p-5  text-center h-100'
const styleMap = {
  dark: {
    image: `${baseImage} bg-light`,
    box: `${baseBox} text-white bg-dark`
  },
  light: {
    image: `${baseImage} bg-dark`,
    box: `${baseBox} bg-light`
  },
  lightMain: {
    image: `${baseImage} bg-dark`,
    box: `${baseBoxMain} bg-light`
  },
  darkMain: {
    image: `${baseImage} bg-light`,
    box: `${baseBoxMain} text-white bg-dark`
  },
  undefined: {
    image: `${baseImage} bg-dark`,
    box: `${baseBox} bg-light`
  },
  null: {
    image: `${baseImage} bg-dark`,
    box: `${baseBox} bg-light`
  }
}

export default styleMap

which is just a class mapping for different elements.

we need the user to be able to choose a style from a dropdown list.

this would be adding an action called EDIT_ITEM_STYLE which would just change the styleType property on the item state.

@nanomosfet nanomosfet added the enhancement New feature or request label Dec 4, 2018
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

1 participant