Skip to content
This repository was archived by the owner on Jan 10, 2021. It is now read-only.
This repository was archived by the owner on Jan 10, 2021. It is now read-only.

Style inheritance  #5

Description

@matmcph

When defining a style on a row, the children do not inherit those styles if they have any other styling on them.
For example:

template(:row, :data) do
  style_class 'foo'
  cell { # Would inherit the styles
    data some_data
  }
  cell { # Would not inherit the styles
    data some_amount
    format :currency
  }
end

To get the previous currency cell to have the styles, you have to do something like this:

template(:row, :data) do
  style_class 'foo'
  cell {
    data some_amount
    format :currency
    style_class 'foo'
  }
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions