Skip to content

Commit

Permalink
Merge pull request #5237 from HSLdevcom/svg-cleanup
Browse files Browse the repository at this point in the history
SVG cleanup part 1
  • Loading branch information
vesameskanen authored Jan 29, 2025
2 parents 320e142 + 8ffa3ad commit 50b1ac8
Show file tree
Hide file tree
Showing 21 changed files with 4,247 additions and 4,927 deletions.
2 changes: 1 addition & 1 deletion app/component/itinerary/BicycleLeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ export default function BicycleLeg(
{origin}
{leg.isViaPoint && (
<Icon
img="icon-icon_mapMarker-via"
img="icon-icon_mapMarker"
className="itinerary-mapmarker-icon"
/>
)}
Expand Down
2 changes: 1 addition & 1 deletion app/component/itinerary/BikeParkLeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const BikeParkLeg = (
<FormattedMessage id="bike-park" />
{leg.isViaPoint && (
<Icon
img="icon-icon_mapMarker-via"
img="icon-icon_mapMarker"
className="itinerary-mapmarker-icon"
/>
)}
Expand Down
2 changes: 1 addition & 1 deletion app/component/itinerary/CarLeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function CarLeg(props, { config, intl }) {
{address}
{props.leg.isViaPoint && (
<Icon
img="icon-icon_mapMarker-via"
img="icon-icon_mapMarker"
className="itinerary-mapmarker-icon"
/>
)}
Expand Down
2 changes: 1 addition & 1 deletion app/component/itinerary/CarParkLeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function CarParkLeg(props, { config, intl }) {
<FormattedMessage id="car_park" defaultMessage="Park & Ride" />
{props.leg.isViaPoint && (
<Icon
img="icon-icon_mapMarker-via"
img="icon-icon_mapMarker"
className="itinerary-mapmarker-icon"
/>
)}
Expand Down
5 changes: 1 addition & 4 deletions app/component/itinerary/EndLeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ function EndLeg(props, context) {
<div className={`leg-before ${modeClassName}`} aria-hidden="true">
<div className={`leg-before-circle circle ${modeClassName}`} />
<div className="itinerary-icon-container">
<Icon
img="icon-icon_mapMarker-to"
className="itinerary-icon to to-it"
/>
<Icon img="icon-icon_mapMarker" className="itinerary-icon to to-it" />
</div>
</div>
<div className="small-9 columns itinerary-instruction-column to end">
Expand Down
2 changes: 1 addition & 1 deletion app/component/itinerary/IntermediateLeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function IntermediateLeg(
</div>
{isViaPoint && (
<Icon
img="icon-icon_mapMarker-via"
img="icon-icon_mapMarker"
className="itinerary-mapmarker-icon"
/>
)}
Expand Down
2 changes: 1 addition & 1 deletion app/component/itinerary/Itinerary.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ ModeLeg.contextTypes = {

export const ViaLeg = () => (
<div className="leg via">
<Icon img="icon-icon_mapMarker-via" className="itinerary-icon place" />
<Icon img="icon-icon_mapMarker" className="itinerary-icon place" />
</div>
);

Expand Down
4 changes: 2 additions & 2 deletions app/component/itinerary/ItineraryCircleLine.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class ItineraryCircleLine extends React.Component {
<>
<div className="itinerary-icon-container start">
<Icon
img="icon-icon_mapMarker-from"
img="icon-icon_mapMarker"
className="itinerary-icon from from-it"
/>
</div>
Expand All @@ -82,7 +82,7 @@ class ItineraryCircleLine extends React.Component {
return (
<div className="itinerary-icon-container">
<Icon
img="icon-icon_mapMarker-via"
img="icon-icon_mapMarker"
className="itinerary-icon via via-it"
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/component/itinerary/ItineraryCircleLineLong.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const ItineraryCircleLineLong = props => {
return (
<div className="itinerary-icon-container start">
<Icon
img="icon-icon_mapMarker-from"
img="icon-icon_mapMarker"
className="itinerary-icon from from-it"
/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/component/itinerary/ItineraryCircleLineWithIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class ItineraryCircleLineWithIcon extends React.Component {
return (
<div className="itinerary-icon-container">
<Icon
img="icon-icon_mapMarker-via"
img="icon-icon_mapMarker"
className="itinerary-icon via via-it"
/>
</div>
Expand All @@ -59,7 +59,7 @@ class ItineraryCircleLineWithIcon extends React.Component {
return (
<div className="itinerary-icon-container start">
<Icon
img="icon-icon_mapMarker-from"
img="icon-icon_mapMarker"
className="itinerary-icon from from-it"
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/component/itinerary/TransitLeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ class TransitLeg extends React.Component {
{leg.from.name}
{leg.isViaPoint && (
<Icon
img="icon-icon_mapMarker-via"
img="icon-icon_mapMarker"
className="itinerary-mapmarker-icon"
/>
)}
Expand Down
2 changes: 1 addition & 1 deletion app/component/itinerary/WaitLeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function WaitLeg(
{leg.to.name}
{leg.isViaPoint && (
<Icon
img="icon-icon_mapMarker-via"
img="icon-icon_mapMarker"
className="itinerary-mapmarker-icon"
/>
)}
Expand Down
2 changes: 1 addition & 1 deletion app/component/itinerary/WalkLeg.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function WalkLeg(
{returnNotice || leg[toOrFrom].name}
{leg.isViaPoint && (
<Icon
img="icon-icon_mapMarker-via"
img="icon-icon_mapMarker"
className="itinerary-mapmarker-icon"
/>
)}
Expand Down
2 changes: 1 addition & 1 deletion app/component/itinerary/navigator/NaviCardExtension.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const NaviCardExtension = ({ legType, leg, nextLeg, time }, { config }) => {
config,
);
} else {
destination.iconId = 'icon-icon_mapMarker-to';
destination.iconId = 'icon-icon_mapMarker';
destination.className = 'place';
destination.name = place;
}
Expand Down
2 changes: 1 addition & 1 deletion app/component/map/LocationMarker.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function LocationMarker({
className: cx(validType, className),
element: (
<Icon
img={`icon-icon_mapMarker-${validType}-map`}
img="icon-icon_mapMarker-map"
color={disabled ? '#bbbbbb' : null}
/>
),
Expand Down
4 changes: 2 additions & 2 deletions app/component/routepage/ScheduleHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ function ScheduleHeader({
const stopHeadersForPrinting = (
<div className="printable-stop-header">
<div className="printable-stop-header_icon-from">
<Icon img="icon-icon_mapMarker-from" />
<Icon img="icon-icon_mapMarker" />
</div>
<div className="printable-stop-header_from">
<span>{fromDisplayName}</span>
</div>
<div className="printable-stop-header_line" style={headerLineStyle} />
<div className="printable-stop-header_icon-to">
<Icon img="icon-icon_mapMarker-to" />
<Icon img="icon-icon_mapMarker" />
</div>
<div className="printable-stop-header_to">
<span>{toDisplayName}</span>
Expand Down
52 changes: 0 additions & 52 deletions sass/themes/hsl/_icon.scss

This file was deleted.

1 change: 0 additions & 1 deletion sass/themes/hsl/main.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* Theme */
@import 'theme';
@import '../../main';
@import 'icon';
Loading

0 comments on commit 50b1ac8

Please sign in to comment.