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

createStyleSheet.configureStateRule #15

Open
lindelwa122 opened this issue Sep 28, 2023 · 0 comments
Open

createStyleSheet.configureStateRule #15

lindelwa122 opened this issue Sep 28, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@lindelwa122
Copy link
Owner

createStyleSheet.configureStateRule

createStyleSheet

The createStyleSheet module facilitates the creation and application of CSS styles to elements. It's important to note that this module isn't intended to replace traditional CSS, but rather to provide an API for efficiently adding CSS rules to elements using JavaScript when it's the most suitable approach.

createStyleSheet.configureStateRule

The createStyleSheet.configureStateRule function is intended to add styles to an element when it is in a certain state, such as changing the color of a paragraph when it is in the hover state. The function is expected to receive inputs structured like this:

{ 
    "button:hover": {
         backgroundColor: "purple",
    }
}

However, it's important to note that this function is not a priority, and achieving this functionality is more effectively done using CSS. This module is not meant to replace CSS, but to assist developers in adding styles when using CSS is not the most appropriate approach.

@lindelwa122 lindelwa122 added the enhancement New feature or request label Sep 28, 2023
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