Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !8246

Added an interactive color swatch to customize page

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/baer/interactive-color-picker-3.0.0-wip into 3.0.0-wip Jun 21, 2013
  • Overview 0
  • Commits 1
  • Pipelines 0
  • Changes 3

Created by: baer

UX Problem

The Customize page does not provide an effective interface for interacting with the variables.less file.

Proposed Solution

Add a simple color swatch next to each of the options in the Bootstrap 3.x color selection section.

Motivation

There have been a number of requests both on the 2.x and 3.x branches to add interactivity but thus far there have been no pull requests that I have seen. E.g. 2804, 2578 etc.

Complexity

There is slightly more complex markup but it's only from using a bootstrap row/col to controll collapsing in different viewports.

JavaScript: +9 lines  
CSS:       +11 lines  
HTML:       +7 lines/color  

Drawbacks

Since the attr(data-color px) style CSS selectors are still not that well implemented I had to use a little inline styling. Maybe the community can help find a better solution.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/baer/interactive-color-picker-3.0.0-wip