Skip to content

Can't implement "follow" from resource card with the current layout #3340

@mrcasals

Description

@mrcasals

This is a Bug Report

🎩 Description

The new design component cards add a way to follow the resource from the M-sized card, which is used in the resource list (eg, proposals list). This couldn't be done from the old cards.

This forced us to generate a new layout to add a way for users to follow the resource, but the HTML used for this uses a link, while Rails forces us to use a <button> element inside a form.

This is the closest implementation to the original design I could get using the CSS classes we already have:

AFAIK, we don't have any class that can be applied to buttons that remove the border.

I found the issue while working on #3338 implementing the proposal cards.

I see two options:

  1. We drop the feature to follow the resource from the card list
  2. We redo the layout to use a button instead of a link, and see if we can find some CSS that gets the job done.

📌 Related issues

📋 Additional Data

  • Decidim deployment where you found the issue: master

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions