We have moved to Github. Please open tickets there.

Opened 2 years ago

Closed 20 months ago

Last modified 19 months ago

#3178 closed Defect (fixed)

elgg-icon does not interact well with floated items

Reported by: cash Owned by:
Priority: normal Milestone: Elgg 1.8.1b
Component: Core Version: Github Master
Severity: minor Keywords:
Cc: brett@… Difficulty: easy

Description

check out the friend river entry. It is supposed to be avatar arrow_icon avatar. Because the avatar is floated, the order is incorrect. Should elgg_view_icon() take an optional float parameter?

How do we want to handle RTL sites for floats? Using .right and .left is going to get us in trouble.

Change History (9)

comment:1 Changed 2 years ago by ewinslow

.float and .float-alt?

As for the friend river entry, this is because the avatar icons are floated and the arrow icon is not, correct?

comment:2 Changed 2 years ago by cash

yes on the avatars floated and the icon is not.

float and float-alt should work. Would be useful to have someone with RTL experience provide some input

comment:3 Changed 23 months ago by cash

  • Difficulty set to easy
  • Milestone changed from Needs Review to Elgg 1.8.0

elgg_view_icon($name, $float = false) either floats the icon or not. We need three options: float, float-alt or no float.

comment:4 Changed 23 months ago by ewinslow

What about making it a "class" parameter instead? You can pass float, float-alt, or nothing. And it allows us to pass other things in the future if we ever find the need to.

comment:5 Changed 21 months ago by brettp

  • Milestone changed from Elgg 1.8.0 to Elgg 1.8.1b

We can keep the .left and .right then add .float and .float-alt later, so bumping this.

comment:6 Changed 21 months ago by cash

.float and .float-alt have been added. We need to remove .right and .left. We really should have updated elgg_view_icon() before the 1.8.0 release if we were going to change it. Do we live with only supporting float/no float instead of the more flexible passing of a class name?

comment:7 Changed 20 months ago by brettp

Let's make the change to pass a class name.

comment:8 Changed 20 months ago by cash

  • Resolution set to fixed
  • Status changed from new to closed

Fixes #3178 updated elgg_view_icon() to take an optional class

Changeset: 6fab3ed243d3e2688916dcb65141e37bef1cc4c3

comment:9 Changed 19 months ago by cash

Fixes #3178 updated elgg_view_icon() to take an optional class

Changeset: 6fab3ed243d3e2688916dcb65141e37bef1cc4c3

Note: See TracTickets for help on using tickets.