Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
Fix an SVG bug to improve browser support
Browse files Browse the repository at this point in the history
SVG is case-sensitive so we need to use camel casing in the
<linearGradient> tag.
  • Loading branch information
mmun committed Feb 9, 2016
1 parent f925cfe commit 491c5dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/badges/render.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
!!! XML
%svg{height: "20", width: width, xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink" => "http://www.w3.org/1999/xlink"}
%a{"xlink:href"=> absolute_url(:badges, :show, id: params[:id]), target: '_blank'}
%lineargradient#a{x2: "0", y2: "100%"}
%linearGradient#a{x2: "0", y2: "100%"}
%stop{offset: "0", "stop-color" => "#bbb", "stop-opacity" => ".1"}
%stop{offset: "1", "stop-opacity" => ".1"}
%rect{fill: "#555", height: "20", rx: "3", width: width}
Expand Down
2 changes: 1 addition & 1 deletion app/views/badges/static.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
!!! XML
%svg{height: "20", width: width, xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink" => "http://www.w3.org/1999/xlink"}
%a{"xlink:href"=> absolute_url(:static, :index), target: '_blank'}
%lineargradient#a{x2: "0", y2: "100%"}
%linearGradient#a{x2: "0", y2: "100%"}
%stop{offset: "0", "stop-color" => "#bbb", "stop-opacity" => ".1"}
%stop{offset: "1", "stop-opacity" => ".1"}
%rect{fill: "#555", height: "20", rx: "3", width: width}
Expand Down

0 comments on commit 491c5dc

Please sign in to comment.