Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • R Radio Buttons
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • 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
  • Extensions
  • Radio Buttons
  • Merge requests
  • !1

more flexible class selection

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open jamie requested to merge jamie/radiobuttons:flexible-classes into master May 03, 2021
  • Overview 0
  • Commits 2
  • Changes 2

Currently radiobuttons_convert_element only works if the radio element being replaced has only the class "content" assigned to it, because that value is hard-coded into the javascript file. By adding a new option, we can enable other radio elements (such as pricesets, which have "contribution_amount-content" specified as an additional class). Without this change, the extension can still replace the radio element with buttons but the feature that indicates that an option is selected (and changes the background color) never matches.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: flexible-classes