module MilestonesHelper
  def progress_tag_for(progress_bar)
    text = number_to_percentage(progress_bar.percentage, precision: 0)

    content_tag :span do
      content_tag(:span, "", "data-text": text, style: "width: #{progress_bar.percentage}%;") +
      content_tag(:progress,
                  text,
                  class: progress_bar.primary? ? "primary" : "",
                  max: ProgressBar::RANGE.max,
                  value: progress_bar.percentage)
    end
  end
end

module MilestonesHelper
  def progress_tag_for(progress_bar)
    text = number_to_percentage(progress_bar.percentage, precision: 0)

    content_tag :div, class: "progress",
                      role:  "progressbar",
                      "aria-valuenow": "#{progress_bar.percentage}",
                      "aria-valuetext": "#{progress_bar.percentage}%",
                      "aria-valuemax": ProgressBar::RANGE.max,
                      "aria-valuemin":  "0",
                      tabindex: "0" do
      content_tag(:span, "",
                  class: "progress-meter",
                  style: "width: #{progress_bar.percentage}%;") +
      content_tag(:p, text, class: "progress-meter-text")
    end
  end
end

Replace progress tag to div class progress
Replace progress tag to div class progress
