Skip to content

Commit

Permalink
Remove tooltip from save / update button in link form view.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati365 committed Dec 24, 2024
1 parent 09ccaf1 commit 13ac475
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ckeditor5-link/src/ui/linkformview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export default class LinkFormView extends View {

saveButton.set( {
label: t( 'Insert' ),
tooltip: true,
tooltip: false,
withText: true,
type: 'submit',
class: 'ck-button-action ck-button-bold'
Expand Down
4 changes: 4 additions & 0 deletions packages/ckeditor5-link/tests/ui/linkformview.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ describe( 'LinkFormView', () => {
expect( secondFormRow.template.children[ 0 ].get( 1 ) ).to.equal( view.saveButtonView );
} );

it( 'should `saveButtonView` has no tooltip', () => {
expect( view.saveButtonView.tooltip ).to.be.false;
} );

it( 'should `backButtonView` has correct label', () => {
const headerChildren = view.template.children[ 0 ].get( 0 ).template.children[ 0 ];
const backButton = headerChildren.get( 0 );
Expand Down

0 comments on commit 13ac475

Please sign in to comment.