[MGNLUI-484] Page Editor: When a component in an area is selected, the editbar of the parent area should be properly styled Created: 31/Dec/12  Updated: 10/Mar/21  Resolved: 10/Mar/21

Status: Closed
Project: Magnolia UI
Component/s: design, page editor
Affects Version/s: 5.0
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: frontend
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLUI-205 Adapt bars in page editor to match ne... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

Example:

  • Open demo project HOME in page editor.
  • Scroll down to the teasers under the stage.
  • Select the LINK LIST area under the Standard Article.
    > The "INTERNAL PAGE TEASER" editbar remains grey.

See linked ticket 205 for description of how the parent of the selected element should be displayed.

When the selected element is a component, and the parent is an area, then the css class "childFocus" is applied to the parent.
A css class such as "childFocus" should be applied to the parent also in the case that the selected item is an area, and the parent is a component.

In CSS there is no way to select the parent of an element, therefore in code a css element must be applied.

Probably the solution will be to make FocusModelImpl.setComponentSelection() more like FocusModelImpl.setAreaSelection()



 Comments   
Comment by Christopher Zimmermann [ 31/Dec/12 ]

205 is the original ticket - this is a followup to the one issue that could not be resolved.

Generated at Mon Feb 12 08:37:20 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.