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

Custom styles on Histoire UI #203

Closed
4 tasks done
victorlmneves opened this issue Jul 25, 2022 · 0 comments · Fixed by #337
Closed
4 tasks done

Custom styles on Histoire UI #203

victorlmneves opened this issue Jul 25, 2022 · 0 comments · Fixed by #337
Assignees
Labels
enhancement New feature or request

Comments

@victorlmneves
Copy link

victorlmneves commented Jul 25, 2022

Clear and concise description of the problem

SInce Histoire UI is based on Tailwind we don't have a way of overriding/controlling the appearance of the app.
Based on interaction with the tool, there are situations where we need to override for example the width of inputs or even the width of the 3 main divs.

Suggested solution

Each main div should contain a data attribute or a specific class/ID in order to be possible to extend/override the default style.
e.g:

<div class="histoire-left-side-nav"></div>
<div class="histoire-main"></div>
<div class="histoire-right-side-nav">
  <div class="histoire-right-side-nav__controls></div>
  <div class="histoire-right-side-nav__auto-props></div>
  <div class="histoire-right-side-nav__source></div>
</div>

For each Builtin control component, we should be able to pass a class in order to override their default styles
e.g:

<HstSelect
    v-model="colorIdentifier"
    :options="colorIdentifierOptions"
    :css="my-custom-select"
    title="colorIdentifier"
></HstSelect>

Alternative

No response

Additional context

Here's one example of problems with the UI #202

Validations

@victorlmneves victorlmneves added the enhancement: to triage New feature of request pending review by team member label Jul 25, 2022
@Akryum Akryum added enhancement New feature or request and removed enhancement: to triage New feature of request pending review by team member labels Jul 25, 2022
@hugoattal hugoattal self-assigned this Oct 19, 2022
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

Successfully merging a pull request may close this issue.

3 participants