Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed Oct 10, 2023
1 parent c45c1c9 commit e646180
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/django_icons/renderers/image.py
Expand Up @@ -203,9 +203,7 @@ def get_class(self):
css_classes += f" icon-{self.name}"
for v_p in self.get_image_variant_attributes_pattern():
if v_p.key in self.get_variant_attributes():
css_classes += " icon-{variant}-{value}".format(
variant=v_p.key, value=self.get_variant_attributes()[v_p.key]
)
css_classes += f" icon-{v_p.key}-{self.get_variant_attributes()[v_p.key]}"
css_classes += f" icon-{self.name}"
return css_classes

Expand Down

0 comments on commit e646180

Please sign in to comment.