Sha256: 265effdd8b7f3b5e4779560a3795cbfc9efdc89537d3d96cf0303834e4039ace
Contents?: true
Size: 430 Bytes
Versions: 2
Compression:
Stored size: 430 Bytes
Contents
# frozen_string_literal: true module Kitchen module Directions module BakeProblemFirstElements def self.v1(within:, selectors:) selectors.each do |selector| within.search(".os-problem-container > #{selector}:first-child").each do |problem| problem.add_class('first-element') problem.parent.add_class('has-first-element') end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
openstax_kitchen-3.2.0 | lib/kitchen/directions/bake_problem_first_elements.rb |
openstax_kitchen-3.1.0 | lib/kitchen/directions/bake_problem_first_elements.rb |