angular-editor icon indicating copy to clipboard operation
angular-editor copied to clipboard

Fix rounded corners for first and last buttons in Editor Toolbar Set

Open melhaer opened this issue 8 years ago • 0 comments

Hello,

I would suggest the following CSS code, that will fix the rounded corners for first and last item buttons in the Editor Toolbar set:

.angular-editor-button:first-child {
  border-radius: 5px 0 0 5px;
}
.angular-editor-button:last-child {
  border-radius: 0 5px 5px 0;
}
.angular-editor-button:first-child:last-child {
  border-radius: 5px;
}

The issue is that on the angular-editor-toolbar-set element, you have set a border radius, but you don't have it on the buttons inside, so the result is a cut rounded corner, which is visible when button is hovered.

Bellow is an image showing the issue.

cut-rounded-corner

melhaer avatar Jul 11 '18 10:07 melhaer