Skip to content

Commit

Permalink
rework Angular element: Button
Browse files Browse the repository at this point in the history
- formatting
  • Loading branch information
Aleksandr_Vorobev committed Mar 14, 2024
1 parent bc44814 commit 0076a1e
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ public boolean focused() {
@JDIAction("Get '{name}' color")
public String color() {
if (core().hasAttribute("color")) {
return AngularColors.fromName(core().attr("color"))
.getColor();
return AngularColors.fromName(core().attr("color")).getColor();
}
return core().getCssValue("background-color");
}
Expand All @@ -38,8 +37,7 @@ public boolean defaultColor() {
@Override
@JDIAction("Get '{name}' text")
public String getText() {
return core().find(LABEL_LOCATOR)
.text();
return core().find(LABEL_LOCATOR).text();
}

@JDIAction("Get visual type '{name}'")
Expand All @@ -55,8 +53,7 @@ public ButtonsTypes visualType() {

@JDIAction("Get if there is icon inside the button")
public boolean hasIcon() {
return !core().finds(ICON_LOCATOR)
.isEmpty();
return !core().finds(ICON_LOCATOR).isEmpty();
}

@JDIAction("Get icon inside the button")
Expand Down

0 comments on commit 0076a1e

Please sign in to comment.